]> git.lizzy.rs Git - bspwm.git/blobdiff - bspwm.h
Merge branch 'status'
[bspwm.git] / bspwm.h
diff --git a/bspwm.h b/bspwm.h
index 213d724d6242b404af1496e0982dd50151f345f3..261e8d99a837b685105128e6c6177cb464752f38 100644 (file)
--- a/bspwm.h
+++ b/bspwm.h
@@ -5,7 +5,6 @@
 
 #define ROOT_EVENT_MASK    (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
 #define CLIENT_EVENT_MASK  (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_ENTER_WINDOW)
-#define BUTTON_MODIFIER    XCB_MOD_MASK_4
 
 xcb_connection_t *dpy;
 int default_screen, screen_width, screen_height;
@@ -14,8 +13,10 @@ uint32_t num_desktops;
 unsigned int num_monitors;
 unsigned int monitor_uid;
 unsigned int desktop_uid;
+unsigned int client_uid;
 xcb_screen_t *screen;
 uint8_t root_depth;
+FILE *status_fifo;
 
 split_mode_t split_mode;
 direction_t split_dir;
@@ -25,11 +26,14 @@ monitor_t *mon_head;
 monitor_t *mon_tail;
 rule_t *rule_head;
 pointer_state_t *frozen_pointer;
+xcb_point_t pointer_position;
 
 bool running;
 
 void register_events(void);
-void handle_zombie(int);
+void handle_buttons(bool);
+void grab_buttons(void);
+void ungrab_buttons(void);
 void setup(void);
 void quit(void);