39 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
39 enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */ |
40 enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ |
40 enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */ |
41 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
41 enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */ |
42 enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
42 enum { ColBorder, ColFG, ColBG, ColLast }; /* color */ |
43 |
43 |
44 typedef struct { |
|
45 int x, y, w, h; |
|
46 unsigned long norm[ColLast]; |
|
47 unsigned long sel[ColLast]; |
|
48 Drawable drawable; |
|
49 GC gc; |
|
50 struct Fnt { |
|
51 int ascent; |
|
52 int descent; |
|
53 int height; |
|
54 XFontSet set; |
|
55 XFontStruct *xfont; |
|
56 } font; |
|
57 } DC; /* draw context */ |
|
58 |
|
59 typedef struct Client Client; |
44 typedef struct Client Client; |
60 struct Client { |
45 struct Client { |
61 char name[256]; |
46 char name[256]; |
62 int x, y, w, h; |
47 int x, y, w, h; |
63 int rx, ry, rw, rh; /* revert geometry */ |
48 int rx, ry, rw, rh; /* revert geometry */ |