]> git.lizzy.rs Git - bspwm.git/blob - bspwm.h
47897c79fa8c2596adf2d81ffb076b3e0d975d0e
[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 bool running;
10
11 static char *WM_ATOM_NAME[]   = { "WM_PROTOCOLS", "WM_DELETE_WINDOW" };
12 static char *NET_ATOM_NAME[]  = { "_NET_SUPPORTED", "_NET_WM_STATE_FULLSCREEN", "_NET_WM_STATE", "_NET_ACTIVE_WINDOW" };
13
14 enum { WM_PROTOCOLS, WM_DELETE_WINDOW, WM_COUNT };
15 enum { NET_SUPPORTED, NET_FULLSCREEN, NET_WM_STATE, NET_ACTIVE, NET_COUNT };
16
17 static xcb_atom_t wmatoms[WM_COUNT], netatoms[NET_COUNT];
18
19 int register_events(void);
20 xcb_screen_t *screen_of_display(xcb_connection_t *, int);
21 void sigchld(int);
22 void setup(int);
23
24 #endif