]> git.lizzy.rs Git - bspwm.git/blobdiff - bspwm.h
New setting: 'focus_follow_mouse'
[bspwm.git] / bspwm.h
diff --git a/bspwm.h b/bspwm.h
index 0cbddf66fb83eeab6557a232be5d1fcb9586f1ec..5c236fc5e1f253bb299d29c483c6de9e8bce329c 100644 (file)
--- a/bspwm.h
+++ b/bspwm.h
@@ -1,23 +1,34 @@
 #ifndef _BSPWM_H
 #define _BSPWM_H
 
+#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 | XCB_EVENT_MASK_ENTER_WINDOW)
+#define BUTTON_MODIFIER    XCB_MOD_MASK_4
+
 xcb_connection_t *dpy;
 int default_screen, screen_width, screen_height;
+unsigned int num_clients;
+uint32_t num_desktops;
 xcb_screen_t *screen;
+xcb_rectangle_t root_rect;
+uint8_t root_depth;
+
 split_mode_t split_mode;
 direction_t split_dir;
-Desktop *desk;
-Desktop *prev_desk;
-bool running;
-
-enum { WM_PROTOCOLS, WM_DELETE_WINDOW, WM_COUNT };
-enum { NET_SUPPORTED, NET_FULLSCREEN, NET_WM_STATE, NET_ACTIVE, NET_COUNT };
+desktop_t *desk;
+desktop_t *last_desk;
+desktop_t *desk_head;
+desktop_t *desk_tail;
+rule_t *rule_head;
+pointer_state_t *frozen_pointer;
 
-xcb_atom_t wmatoms[WM_COUNT], netatoms[NET_COUNT];
+bool running;
 
-int register_events(void);
-xcb_screen_t *screen_of_display(xcb_connection_t *, int);
-void sigchld(int);
-void setup(int);
+void register_events(void);
+void handle_zombie(int);
+void setup(void);
+void quit(void);
 
 #endif