5 #include <xcb/xcb_event.h>
8 #define SPLIT_RATIO 0.5
9 #define DEFAULT_DESK_NAME "One"
49 ROTATE_COUNTER_CLOCKWISE,
70 bool transient; /* transient window are always floating */
72 bool locked; /* protects window from being closed */
74 xcb_rectangle_t floating_rectangle;
75 xcb_rectangle_t tiled_rectangle;
78 typedef struct node_t node_t;
80 split_type_t split_type;
82 xcb_rectangle_t rectangle;
83 bool vacant; /* vacant nodes only hold floating clients */
88 client_t *client; /* NULL except for leaves */
91 typedef struct desktop_t desktop_t;
108 char desk_name[MAXLEN];
111 typedef struct rule_t rule_t;
114 rule_effect_t effect;
124 xcb_point_t position;
126 xcb_rectangle_t rectangle;
132 node_t *make_node(void);
133 desktop_t *make_desktop(const char *);
134 client_t *make_client(xcb_window_t);
135 rule_t *make_rule(void);
136 pointer_state_t *make_pointer_state(void);