]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
Remove setting: 'focus_follows_pointer'
[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)
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 unsigned int rule_uid;
18 xcb_screen_t *screen;
19 xcb_window_t root;
20 uint8_t root_depth;
21 FILE *status_fifo;
22
23 split_mode_t split_mode;
24 direction_t split_dir;
25 monitor_t *mon;
26 monitor_t *last_mon;
27 monitor_t *mon_head;
28 monitor_t *mon_tail;
29 rule_t *rule_head;
30 rule_t *rule_tail;
31
32 pointer_state_t *frozen_pointer;
33 xcb_atom_t compton_shadow;
34
35 int exit_status;
36
37 bool visible;
38 bool running;
39
40 void register_events(void);
41 void setup(void);
42 void cleanup(void);
43 void quit(void);
44
45 #endif