forked from baskerville/bspwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbspwm.h
57 lines (49 loc) · 1.29 KB
/
bspwm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef BSPWM_BSPWM_H
#define BSPWM_BSPWM_H
#include "types.h"
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
#define CLIENT_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_FOCUS_CHANGE)
#define CLIENT_EVENT_MASK_FFP (CLIENT_EVENT_MASK | XCB_EVENT_MASK_ENTER_WINDOW)
xcb_connection_t *dpy;
int default_screen, screen_width, screen_height;
uint32_t num_clients;
uint32_t num_desktops;
unsigned int num_monitors;
unsigned int monitor_uid;
unsigned int desktop_uid;
xcb_screen_t *screen;
xcb_window_t root;
uint8_t root_depth;
FILE *status_fifo;
char *status_prefix;
char config_path[MAXLEN];
monitor_t *mon;
monitor_t *mon_head;
monitor_t *mon_tail;
monitor_t *pri_mon;
history_t *history_head;
history_t *history_tail;
history_t *history_needle;
stacking_list_t *stack_head;
stacking_list_t *stack_tail;
rule_t *rule_head;
rule_t *rule_tail;
pointer_state_t *frozen_pointer;
xcb_window_t motion_recorder;
xcb_atom_t WM_TAKE_FOCUS;
xcb_atom_t WM_DELETE_WINDOW;
xcb_atom_t _BSPWM_FLOATING_WINDOW;
int exit_status;
bool visible;
bool auto_raise;
bool sticky_still;
bool record_history;
bool running;
bool randr;
void init(void);
void setup(void);
void register_events(void);
void quit(void);
void cleanup(void);
void put_status(void);
#endif