]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
Refactoring
[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 xcb_screen_t *screen;
7 split_mode_t split_mode;
8 direction_t split_dir;
9 Desktop *desk;
10 Desktop *prev_desk;
11 bool running;
12
13 enum { WM_PROTOCOLS, WM_DELETE_WINDOW, WM_COUNT };
14 enum { NET_SUPPORTED, NET_FULLSCREEN, NET_WM_STATE, NET_ACTIVE, NET_COUNT };
15
16 xcb_atom_t wmatoms[WM_COUNT], netatoms[NET_COUNT];
17
18 int register_events(void);
19 xcb_screen_t *screen_of_display(xcb_connection_t *, int);
20 void sigchld(int);
21 void setup(int);
22
23 #endif