处理 property_notify 事件

This commit is contained in:
2025-08-24 12:44:15 +08:00
parent 165dd0733c
commit 8f892633cc
5 changed files with 63 additions and 14 deletions

View File

@@ -2,7 +2,6 @@
#include <stdbool.h>
#include <stdint.h>
#include <xcb/xproto.h>
#include "types.h"
@@ -115,8 +114,15 @@ typedef struct focus_in_event_t {
xcb_window_t window;
} focus_in_event_t;
typedef enum property_state_t {
property_new_value = 0,
property_delete = 1
} property_state_t;
typedef struct property_notify_event_t {
event_type_t type;
xcb_window_t window;
uint32_t xcb_atom;
property_state_t state;
} property_notify_event_t;
typedef struct client_message_event_t {