equal
deleted
inserted
replaced
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 { |
44 typedef struct { |
45 int ascent; |
|
46 int descent; |
|
47 int height; |
|
48 XFontSet set; |
|
49 XFontStruct *xfont; |
|
50 } Fnt; |
|
51 |
|
52 typedef struct { |
|
53 int x, y, w, h; |
45 int x, y, w, h; |
54 unsigned long norm[ColLast]; |
46 unsigned long norm[ColLast]; |
55 unsigned long sel[ColLast]; |
47 unsigned long sel[ColLast]; |
56 Drawable drawable; |
48 Drawable drawable; |
57 Fnt font; |
|
58 GC gc; |
49 GC gc; |
|
50 struct Fnt { |
|
51 int ascent; |
|
52 int descent; |
|
53 int height; |
|
54 XFontSet set; |
|
55 XFontStruct *xfont; |
|
56 } font; |
59 } DC; /* draw context */ |
57 } DC; /* draw context */ |
60 |
58 |
61 typedef struct Client Client; |
59 typedef struct Client Client; |
62 struct Client { |
60 struct Client { |
63 char name[256]; |
61 char name[256]; |