]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
Final specifications
[bspwm.git] / bspwm.h
1 #ifndef _BSPWM_H
2 #define _BSPWM_H
3
4 xcb_connection_t *dpy;
5 int default_screen, screen_width, screen_height;
6 unsigned int num_clients;
7 xcb_screen_t *screen;
8 split_mode_t split_mode;
9 direction_t split_dir;
10 Desktop *desk;
11 Desktop *prev_desk;
12 Desktop *desk_head;
13 Desktop *desk_tail;
14 bool running;
15
16 enum { WM_PROTOCOLS, WM_DELETE_WINDOW, WM_COUNT };
17 enum { NET_SUPPORTED, NET_FULLSCREEN, NET_WM_STATE, NET_ACTIVE, NET_COUNT };
18
19 xcb_atom_t wmatoms[WM_COUNT], netatoms[NET_COUNT];
20
21 int register_events(void);
22 xcb_screen_t *screen_of_display(xcb_connection_t *, int);
23 void sigchld(int);
24 void setup(int);
25
26 #endif