检测显示器信息

This commit is contained in:
2025-08-03 01:25:14 +08:00
parent 82456e77c9
commit 80f909ce22
8 changed files with 186 additions and 2 deletions

16
src/include/xcb.h Normal file
View File

@@ -0,0 +1,16 @@
#pragma once
#include <stdbool.h>
#include <stdint.h>
typedef struct monitor_rect_t monitor_rect_t;
struct monitor_rect_t {
int32_t x;
int32_t y;
uint32_t width;
uint32_t height;
monitor_rect_t *next;
};
bool has_other_wm_running(void);
monitor_rect_t *detect_monitor_rect(void);