backend: X11 后端添加窗口几何信息查询并修正错误语义

- 添加 window_get_geometry/window_get_fixed_size/window_get_geometry_mode
- window_get_atom_array 改为 bool 返回,区分 XCB 调用错误和空数据
- window_get_types/window_get_states 属性为空时返回 true 而非 false
- handle_map_request 重排操作顺序:错误检查提前,失败路径无内存泄漏
- 补充 _NET_WM_STATE_MAXIMIZED_VERT/HORZ atom 注册
This commit is contained in:
2026-04-09 02:23:06 +08:00
parent 0edb6ad6aa
commit 3884d3fc50
6 changed files with 141 additions and 32 deletions

View File

@@ -66,7 +66,7 @@ typedef struct window_map_request_event_t {
window_id_t window;
window_props_t props;
window_metadata_t metadata;
window_geometry_mode_t geometry;
window_geometry_t geometry;
} window_map_request_event_t;
typedef enum window_remove_reason_t {