6 #define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
7 #define CLIENT_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_ENTER_WINDOW)
10 int default_screen, screen_width, screen_height;
12 uint32_t num_desktops;
13 unsigned int num_monitors;
14 unsigned int monitor_uid;
15 unsigned int desktop_uid;
16 unsigned int client_uid;
21 split_mode_t split_mode;
22 direction_t split_dir;
28 pointer_state_t *frozen_pointer;
29 xcb_point_t pointer_position;
30 xcb_window_t last_entered;
35 void register_events(void);
36 void handle_buttons(bool);
37 void grab_buttons(void);
38 void ungrab_buttons(void);