]> git.lizzy.rs Git - bspwm.git/blobdiff - bspwm.h
Fix wrong assumption regarding window id
[bspwm.git] / bspwm.h
diff --git a/bspwm.h b/bspwm.h
index a67885dcd147087d3be026812c1964041f92d162..7bba20bb5c685202a472342e08ec07089c411504 100644 (file)
--- a/bspwm.h
+++ b/bspwm.h
@@ -4,27 +4,32 @@
 #include "types.h"
 
 #define ROOT_EVENT_MASK    (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
-#define CLIENT_EVENT_MASK  (XCB_EVENT_MASK_PROPERTY_CHANGE)
+#define CLIENT_EVENT_MASK  (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_ENTER_WINDOW)
 
 xcb_connection_t *dpy;
 int default_screen, screen_width, screen_height;
-unsigned int num_clients;
+uint32_t num_clients;
 uint32_t num_desktops;
+unsigned int num_monitors;
+unsigned int monitor_uid;
+unsigned int desktop_uid;
+unsigned int client_uid;
 xcb_screen_t *screen;
-xcb_rectangle_t root_rect;
 uint8_t root_depth;
 
 split_mode_t split_mode;
 direction_t split_dir;
-desktop_t *desk;
-desktop_t *last_desk;
-desktop_t *desk_head;
-desktop_t *desk_tail;
+monitor_t *mon;
+monitor_t *last_mon;
+monitor_t *mon_head;
+monitor_t *mon_tail;
 rule_t *rule_head;
+pointer_state_t *frozen_pointer;
 
 bool running;
 
 void register_events(void);
+void grab_buttons(void);
 void handle_zombie(int);
 void setup(void);
 void quit(void);