处理 property_notify 事件
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -103,7 +103,9 @@ typedef enum atom_t {
|
||||
atom_wm_protocols,
|
||||
atom_wm_delete,
|
||||
atom_wm_take_focus,
|
||||
atom_net_wm_name,
|
||||
} atom_t;
|
||||
xcb_atom_t get_xcb_atom(atom_t atom);
|
||||
bool send_event(xcb_window_t window, atom_t atom);
|
||||
typedef enum wm_state_t {
|
||||
wm_state_withdrawn = 0,
|
||||
|
||||
Reference in New Issue
Block a user