bspwm/bspwm.h

39 lines
861 B
C
Raw Normal View History

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"
#define ROOT_EVENT_MASK (XCB_EVENT_MASK_SUBSTRUCTURE_REDIRECT | XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY)
2012-10-22 12:21:12 +02:00
#define CLIENT_EVENT_MASK (XCB_EVENT_MASK_PROPERTY_CHANGE | XCB_EVENT_MASK_ENTER_WINDOW)
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;
uint32_t num_desktops;
2012-10-17 16:18:40 +02:00
unsigned int num_monitors;
unsigned int monitor_uid;
unsigned int desktop_uid;
unsigned int client_uid;
2012-08-01 23:16:07 +02:00
xcb_screen_t *screen;
2012-09-21 17:39:22 +02:00
uint8_t root_depth;
2012-08-19 10:34:08 +02:00
split_mode_t split_mode;
direction_t split_dir;
2012-10-17 16:18:40 +02:00
monitor_t *mon;
monitor_t *last_mon;
monitor_t *mon_head;
monitor_t *mon_tail;
2012-09-11 13:12:53 +02:00
rule_t *rule_head;
pointer_state_t *frozen_pointer;
2012-10-23 15:30:30 +02:00
xcb_point_t pointer_position;
2012-09-21 17:39:22 +02:00
2012-07-31 14:32:13 +02:00
bool running;
2012-08-01 23:16:07 +02:00
2012-09-21 17:39:22 +02:00
void register_events(void);
2012-10-23 12:42:40 +02:00
void grab_buttons(void);
2012-10-23 17:01:32 +02:00
void ungrab_buttons(void);
2012-09-18 19:18:02 +02:00
void setup(void);
2012-08-29 12:45:44 +02:00
void quit(void);
2012-08-01 23:16:07 +02:00
2012-07-31 14:32:13 +02:00
#endif