-
Notifications
You must be signed in to change notification settings - Fork 96
/
types.h
54 lines (54 loc) · 1.94 KB
/
types.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
///---Types---///
struct monitor {
xcb_randr_output_t id;
int16_t y,x; // X and Y.
uint16_t width,height; // Width/Height in pixels.
struct item *item; // Pointer to our place in output list.
};
typedef union {
const char** com;
const uint32_t i;
} Arg;
typedef struct {
unsigned int mod;
xcb_keysym_t keysym;
void (*func)(const Arg *);
const Arg arg;
} key;
typedef struct {
unsigned int mask, button;
void (*func)(const Arg *);
const Arg arg;
const bool root_only;
} Button;
struct sizepos {
int16_t x, y;
uint16_t width,height;
};
struct client { // Everything we know about a window.
xcb_drawable_t id; // ID of this window.
bool usercoord; // X,Y was set by -geom.
int16_t x, y; // X/Y coordinate.
uint16_t width,height; // Width,Height in pixels.
uint8_t depth; // pixel depth
struct sizepos origsize; // Original size if we're currently maxed.
uint16_t max_width, max_height,min_width, min_height, width_inc, height_inc,base_width, base_height;
bool fixed,unkillable,vertmaxed,hormaxed,maxed,verthor,ignore_borders,iconic;
struct monitor *monitor; // The physical output this window is on.
struct item *winitem; // Pointer to our place in global windows list.
struct item *wsitem; // Pointer to workspace window list.
int ws; // In which workspace this window belongs to.
};
struct winconf { // Window configuration data.
int16_t x, y;
uint16_t width,height;
uint8_t stackmode;
xcb_window_t sibling;
};
struct conf {
int8_t borderwidth; // Do we draw borders for non-focused window? If so, how large?
int8_t outer_border; // The size of the outer border
uint32_t focuscol,unfocuscol,fixedcol,unkillcol,empty_col,fixed_unkil_col,outer_border_col;
bool inverted_colors;
bool enable_compton;
} conf;