mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
51 lines
1.1 KiB
C
51 lines
1.1 KiB
C
#ifndef _BSPWM_H
|
|
#define _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)
|
|
#define CLIENT_EVENT_MASK_FFP (XCB_EVENT_MASK_PROPERTY_CHANGE | 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;
|
|
unsigned int client_uid;
|
|
unsigned int rule_uid;
|
|
xcb_screen_t *screen;
|
|
xcb_window_t root;
|
|
uint8_t root_depth;
|
|
FILE *status_fifo;
|
|
char *status_prefix;
|
|
|
|
split_mode_t split_mode;
|
|
direction_t split_dir;
|
|
monitor_t *mon;
|
|
monitor_t *last_mon;
|
|
monitor_t *mon_head;
|
|
monitor_t *mon_tail;
|
|
rule_t *rule_head;
|
|
rule_t *rule_tail;
|
|
|
|
pointer_state_t *frozen_pointer;
|
|
xcb_window_t motion_recorder;
|
|
xcb_atom_t compton_shadow;
|
|
|
|
int exit_status;
|
|
|
|
bool visible;
|
|
bool running;
|
|
bool randr;
|
|
|
|
void register_events(void);
|
|
bool import_monitors(void);
|
|
void init(void);
|
|
void setup(void);
|
|
void cleanup(void);
|
|
void quit(void);
|
|
|
|
#endif
|