分离修改窗口宽高/边框宽度和移动窗口操作

This commit is contained in:
2025-08-31 00:12:02 +08:00
parent 91c417a0e3
commit 1b0ed3b9b8
3 changed files with 30 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ void map_window(xcb_window_t window, bool map_sub_window);
char *get_window_name(xcb_window_t window);
void set_window_event_mask(xcb_window_t window, bool clear);
void change_window_border_color(xcb_window_t window, uint32_t argb);
void change_window_border_width(xcb_window_t window, uint32_t border_width);
void focus_window(xcb_window_t window);
/**
* @brief 将 window 置于堆叠顺序的顶部
@@ -83,6 +84,8 @@ bar_cairo_params_t *create_bar_window(int16_t x, int16_t y, uint16_t width,
void destroy_window(xcb_window_t window);
void configure_window(xcb_window_t window, int32_t x, int32_t y, uint32_t width,
uint32_t height, uint32_t border_width);
void move_window(xcb_window_t window, int32_t x, int32_t y);
void resize_window(xcb_window_t window, uint32_t width, uint32_t height);
typedef struct monitor_rect_t monitor_rect_t;
struct monitor_rect_t {