2012-08-18 11:18:19 +02:00
|
|
|
#ifndef _BSPWM_H
|
|
|
|
#define _BSPWM_H
|
2012-07-31 14:32:13 +02:00
|
|
|
|
2012-09-18 17:21:04 +02:00
|
|
|
#include "types.h"
|
|
|
|
|
2013-01-08 15:52:20 +01:00
|
|
|
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
|
2013-07-30 14:53:44 +02:00
|
|
|
#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)
|
2012-09-21 19:05:42 +02:00
|
|
|
|
2012-07-30 12:21:22 +02:00
|
|
|
xcb_connection_t *dpy;
|
2012-08-01 23:16:07 +02:00
|
|
|
int default_screen, screen_width, screen_height;
|
2012-10-17 16:18:40 +02:00
|
|
|
uint32_t num_clients;
|
2012-09-16 14:16:58 +02:00
|
|
|
uint32_t num_desktops;
|
2012-10-17 16:18:40 +02:00
|
|
|
unsigned int num_monitors;
|
|
|
|
unsigned int monitor_uid;
|
|
|
|
unsigned int desktop_uid;
|
2012-08-01 23:16:07 +02:00
|
|
|
xcb_screen_t *screen;
|
2013-01-02 12:36:54 +01:00
|
|
|
xcb_window_t root;
|
2012-09-21 17:39:22 +02:00
|
|
|
uint8_t root_depth;
|
2012-12-18 12:38:46 +01:00
|
|
|
FILE *status_fifo;
|
2013-04-02 19:46:16 +02:00
|
|
|
char *status_prefix;
|
2013-07-29 10:27:04 +02:00
|
|
|
char config_path[MAXLEN];
|
2012-09-21 17:39:22 +02:00
|
|
|
|
2012-10-17 16:18:40 +02:00
|
|
|
monitor_t *mon;
|
|
|
|
monitor_t *mon_head;
|
|
|
|
monitor_t *mon_tail;
|
2013-09-09 15:25:26 +02:00
|
|
|
monitor_t *pri_mon;
|
2013-10-01 10:48:03 +02:00
|
|
|
history_t *history_head;
|
|
|
|
history_t *history_tail;
|
2013-10-07 10:22:07 +02:00
|
|
|
stacking_list_t *stack_head;
|
|
|
|
stacking_list_t *stack_tail;
|
2012-09-11 13:12:53 +02:00
|
|
|
rule_t *rule_head;
|
2012-12-25 19:03:35 +01:00
|
|
|
rule_t *rule_tail;
|
2013-01-02 12:36:54 +01:00
|
|
|
|
2012-09-22 15:10:59 +02:00
|
|
|
pointer_state_t *frozen_pointer;
|
2013-03-04 11:25:12 +01:00
|
|
|
xcb_window_t motion_recorder;
|
2013-09-05 15:37:54 +02:00
|
|
|
xcb_atom_t WM_TAKE_FOCUS;
|
|
|
|
xcb_atom_t WM_DELETE_WINDOW;
|
|
|
|
xcb_atom_t _BSPWM_FLOATING_WINDOW;
|
2012-12-24 12:02:35 +01:00
|
|
|
int exit_status;
|
2012-09-21 17:39:22 +02:00
|
|
|
|
2012-12-23 12:11:08 +01:00
|
|
|
bool visible;
|
2013-07-15 20:28:28 +02:00
|
|
|
bool auto_raise;
|
2013-10-01 18:04:18 +02:00
|
|
|
bool sticky_still;
|
2012-07-31 14:32:13 +02:00
|
|
|
bool running;
|
2013-06-10 13:51:46 +02:00
|
|
|
bool randr;
|
2012-08-01 23:16:07 +02:00
|
|
|
|
2013-05-28 17:31:35 +02:00
|
|
|
void init(void);
|
2012-09-18 19:18:02 +02:00
|
|
|
void setup(void);
|
2013-09-19 15:02:49 +02:00
|
|
|
void register_events(void);
|
2012-08-29 12:45:44 +02:00
|
|
|
void quit(void);
|
2013-10-05 22:32:40 +02:00
|
|
|
void cleanup(void);
|
|
|
|
void put_status(void);
|
2012-08-01 23:16:07 +02:00
|
|
|
|
2012-07-31 14:32:13 +02:00
|
|
|
#endif
|