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