]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
7159d8c4bbc7ef3484942f8cefeacbef2fd6c48b
[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
8 xcb_connection_t *dpy;
9 int default_screen, screen_width, screen_height;
10 unsigned int num_clients;
11 uint32_t num_desktops;
12 xcb_screen_t *screen;
13 xcb_rectangle_t root_rect;
14 uint8_t root_depth;
15
16 split_mode_t split_mode;
17 direction_t split_dir;
18 desktop_t *desk;
19 desktop_t *last_desk;
20 desktop_t *desk_head;
21 desktop_t *desk_tail;
22 rule_t *rule_head;
23
24 bool running;
25
26 void register_events(void);
27 void handle_zombie(int);
28 void setup(void);
29 void quit(void);
30
31 #endif