开启 xcb 事件循环

This commit is contained in:
2025-08-12 20:46:47 +08:00
parent 943d566cef
commit 43ca95d2f4
3 changed files with 43 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
#include <xcb/xproto.h>
bool has_other_wm_running(void);
int get_xcb_connection_fd(void);
typedef struct monitor_rect_t monitor_rect_t;
struct monitor_rect_t {
@@ -29,4 +30,5 @@ typedef struct window_list_t {
} window_list_t;
window_list_t *scan_window_list(void);
void free_window_list(window_list_t *window_list);
void start_xcb_event_loop(void);
void clean_xcb(void);