summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.h')
-rw-r--r--dwm.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/dwm.h b/dwm.h
index b96facd..4e9c6b5 100644
--- a/dwm.h
+++ b/dwm.h
@@ -11,15 +11,10 @@
11#define MOUSEMASK (BUTTONMASK | PointerMotionMask) 11#define MOUSEMASK (BUTTONMASK | PointerMotionMask)
12#define PROTODELWIN 1 12#define PROTODELWIN 1
13 13
14typedef union Arg Arg; 14typedef union {
15typedef struct Client Client;
16typedef struct DC DC;
17typedef struct Fnt Fnt;
18
19union Arg {
20 const char *cmd; 15 const char *cmd;
21 int i; 16 int i;
22}; 17} Arg;
23 18
24/* atoms */ 19/* atoms */
25enum { NetSupported, NetWMName, NetLast }; 20enum { NetSupported, NetWMName, NetLast };
@@ -28,18 +23,18 @@ enum { WMProtocols, WMDelete, WMLast };
28/* cursor */ 23/* cursor */
29enum { CurNormal, CurResize, CurMove, CurLast }; 24enum { CurNormal, CurResize, CurMove, CurLast };
30 25
31/* windowcorners */ 26/* window corners */
32typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner; 27typedef enum { TopLeft, TopRight, BotLeft, BotRight } Corner;
33 28
34struct Fnt { 29typedef struct {
35 int ascent; 30 int ascent;
36 int descent; 31 int descent;
37 int height; 32 int height;
38 XFontSet set; 33 XFontSet set;
39 XFontStruct *xfont; 34 XFontStruct *xfont;
40}; 35} Fnt;
41 36
42struct DC { /* draw context */ 37typedef struct { /* draw context */
43 int x, y, w, h; 38 int x, y, w, h;
44 unsigned long bg; 39 unsigned long bg;
45 unsigned long fg; 40 unsigned long fg;
@@ -47,8 +42,9 @@ struct DC { /* draw context */
47 Drawable drawable; 42 Drawable drawable;
48 Fnt font; 43 Fnt font;
49 GC gc; 44 GC gc;
50}; 45} DC;
51 46
47typedef struct Client Client;
52struct Client { 48struct Client {
53 char name[256]; 49 char name[256];
54 int proto; 50 int proto;