Mercurial > aewl
comparison dwm.h @ 84:052fe7498930
ordered variables in structs and source files alphabetically
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Mon, 17 Jul 2006 09:12:29 +0200 |
parents | 8125f908c80c |
children | c498da7520c7 |
comparison
equal
deleted
inserted
replaced
83:ca809fdd30ea | 84:052fe7498930 |
---|---|
35 const char **argv; | 35 const char **argv; |
36 int i; | 36 int i; |
37 }; | 37 }; |
38 | 38 |
39 /* atoms */ | 39 /* atoms */ |
40 enum { NetSupported, NetWMName, NetLast }; | |
40 enum { WMProtocols, WMDelete, WMLast }; | 41 enum { WMProtocols, WMDelete, WMLast }; |
41 enum { NetSupported, NetWMName, NetLast }; | |
42 | 42 |
43 /* cursor */ | 43 /* cursor */ |
44 enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; | 44 enum { CurNormal, CurResize, CurMove, CurLast }; |
45 | 45 |
46 struct Fnt { | 46 struct Fnt { |
47 XFontStruct *xfont; | |
48 XFontSet set; | |
49 int ascent; | 47 int ascent; |
50 int descent; | 48 int descent; |
51 int height; | 49 int height; |
50 XFontSet set; | |
51 XFontStruct *xfont; | |
52 }; | 52 }; |
53 | 53 |
54 struct DC { /* draw context */ | 54 struct DC { /* draw context */ |
55 GC gc; | |
56 Drawable drawable; | |
57 int x, y, w, h; | 55 int x, y, w, h; |
58 Fnt font; | |
59 unsigned long bg; | 56 unsigned long bg; |
60 unsigned long fg; | 57 unsigned long fg; |
61 unsigned long border; | 58 unsigned long border; |
59 Drawable drawable; | |
60 Fnt font; | |
61 GC gc; | |
62 }; | 62 }; |
63 | 63 |
64 struct Client { | 64 struct Client { |
65 char name[256]; | 65 char name[256]; |
66 char *tags[TLast]; | 66 char *tags[TLast]; |
70 int basew, baseh, incw, inch, maxw, maxh, minw, minh; | 70 int basew, baseh, incw, inch, maxw, maxh, minw, minh; |
71 int grav; | 71 int grav; |
72 unsigned int border; | 72 unsigned int border; |
73 long flags; | 73 long flags; |
74 Bool isfloat; | 74 Bool isfloat; |
75 Client *next; | |
76 Client *revert; | |
75 Window win; | 77 Window win; |
76 Window title; | 78 Window title; |
77 Client *next; | |
78 Client *revert; | |
79 }; | 79 }; |
80 | 80 |
81 struct Rule { | 81 struct Rule { |
82 const char *class; | 82 const char *class; |
83 const char *instance; | 83 const char *instance; |
90 KeySym keysym; | 90 KeySym keysym; |
91 void (*func)(Arg *arg); | 91 void (*func)(Arg *arg); |
92 Arg arg; | 92 Arg arg; |
93 }; | 93 }; |
94 | 94 |
95 extern Display *dpy; | 95 extern char *tags[TLast], stext[1024]; |
96 extern Window root, barwin; | 96 extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; |
97 extern Atom wmatom[WMLast], netatom[NetLast]; | |
98 extern Cursor cursor[CurLast]; | |
99 extern Bool running, issel; | |
100 extern void (*handler[LASTEvent])(XEvent *); | 97 extern void (*handler[LASTEvent])(XEvent *); |
101 extern void (*arrange)(Arg *); | 98 extern void (*arrange)(Arg *); |
99 extern Atom wmatom[WMLast], netatom[NetLast]; | |
100 extern Bool running, issel; | |
101 extern Client *clients, *sel; | |
102 extern Cursor cursor[CurLast]; | |
103 extern DC dc; | |
104 extern Display *dpy; | |
102 extern Key key[]; | 105 extern Key key[]; |
103 | 106 extern Window root, barwin; |
104 extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw; | |
105 extern char *tags[TLast], stext[1024]; | |
106 | |
107 extern DC dc; | |
108 extern Client *clients, *sel; | |
109 | 107 |
110 /* client.c */ | 108 /* client.c */ |
111 extern void ban(Client *c); | 109 extern void ban(Client *c); |
112 extern void focus(Client *c); | 110 extern void focus(Client *c); |
113 extern void focusnext(Arg *arg); | 111 extern void focusnext(Arg *arg); |