扫描窗口管理器启动时需要管理的窗口

This commit is contained in:
2025-08-04 01:44:26 +08:00
parent 80f909ce22
commit e22265937e
5 changed files with 108 additions and 3 deletions

View File

@@ -2,6 +2,9 @@
#include <stdbool.h>
#include <stdint.h>
#include <xcb/xproto.h>
bool has_other_wm_running(void);
typedef struct monitor_rect_t monitor_rect_t;
struct monitor_rect_t {
@@ -11,6 +14,11 @@ struct monitor_rect_t {
uint32_t height;
monitor_rect_t *next;
};
bool has_other_wm_running(void);
monitor_rect_t *detect_monitor_rect(void);
typedef struct window_list_t {
uint32_t count;
xcb_window_t *list;
} window_list_t;
window_list_t *scan_window_list(void);
void free_window_list(window_list_t *window_list);