]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
Fix the handling of 'button_modifier'
[bspwm.git] / bspwm.h
1 #ifndef _BSPWM_H
2 #define _BSPWM_H
3
4 #include "types.h"
5
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)
8
9 xcb_connection_t *dpy;
10 int default_screen, screen_width, screen_height;
11 uint32_t num_clients;
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;
17 xcb_screen_t *screen;
18 uint8_t root_depth;
19
20 split_mode_t split_mode;
21 direction_t split_dir;
22 monitor_t *mon;
23 monitor_t *last_mon;
24 monitor_t *mon_head;
25 monitor_t *mon_tail;
26 rule_t *rule_head;
27 pointer_state_t *frozen_pointer;
28 xcb_point_t pointer_position;
29
30 bool running;
31
32 void register_events(void);
33 void grab_buttons(void);
34 void ungrab_buttons(void);
35 void handle_zombie(int);
36 void setup(void);
37 void quit(void);
38
39 #endif