summaryrefslogtreecommitdiffstats
path: root/dwm.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dwm.h38
-rw-r--r--dwm.html7
2 files changed, 21 insertions, 24 deletions
diff --git a/dwm.h b/dwm.h
index 75aa50c..de88527 100644
--- a/dwm.h
+++ b/dwm.h
@@ -37,28 +37,28 @@ union Arg {
37}; 37};
38 38
39/* atoms */ 39/* atoms */
40enum { WMProtocols, WMDelete, WMLast };
41enum { NetSupported, NetWMName, NetLast }; 40enum { NetSupported, NetWMName, NetLast };
41enum { WMProtocols, WMDelete, WMLast };
42 42
43/* cursor */ 43/* cursor */
44enum { CurNormal, CurResize, CurMove, CurInput, CurLast }; 44enum { CurNormal, CurResize, CurMove, CurLast };
45 45
46struct Fnt { 46struct 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
54struct DC { /* draw context */ 54struct 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
64struct Client { 64struct Client {
@@ -72,10 +72,10 @@ struct Client {
72 unsigned int border; 72 unsigned int border;
73 long flags; 73 long flags;
74 Bool isfloat; 74 Bool isfloat;
75 Window win;
76 Window title;
77 Client *next; 75 Client *next;
78 Client *revert; 76 Client *revert;
77 Window win;
78 Window title;
79}; 79};
80 80
81struct Rule { 81struct Rule {
@@ -92,20 +92,18 @@ struct Key {
92 Arg arg; 92 Arg arg;
93}; 93};
94 94
95extern Display *dpy; 95extern char *tags[TLast], stext[1024];
96extern Window root, barwin; 96extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
97extern Atom wmatom[WMLast], netatom[NetLast];
98extern Cursor cursor[CurLast];
99extern Bool running, issel;
100extern void (*handler[LASTEvent])(XEvent *); 97extern void (*handler[LASTEvent])(XEvent *);
101extern void (*arrange)(Arg *); 98extern void (*arrange)(Arg *);
102extern Key key[]; 99extern Atom wmatom[WMLast], netatom[NetLast];
103 100extern Bool running, issel;
104extern int tsel, screen, sx, sy, sw, sh, bx, by, bw, bh, mw;
105extern char *tags[TLast], stext[1024];
106
107extern DC dc;
108extern Client *clients, *sel; 101extern Client *clients, *sel;
102extern Cursor cursor[CurLast];
103extern DC dc;
104extern Display *dpy;
105extern Key key[];
106extern Window root, barwin;
109 107
110/* client.c */ 108/* client.c */
111extern void ban(Client *c); 109extern void ban(Client *c);
diff --git a/dwm.html b/dwm.html
index 8f0aff6..0df44b5 100644
--- a/dwm.html
+++ b/dwm.html
@@ -39,10 +39,9 @@
39 </p> 39 </p>
40 <ul> 40 <ul>
41 <li> 41 <li>
42 dwm has no 9P support, no menu, no editable tagbars, 42 dwm has no 9P support, no editable tagbars, no shell-based
43 no shell-based configuration and remote control and comes without 43 configuration and remote control and comes without any additional
44 any additional tools like printing the selection or warping the 44 tools like printing the selection or warping the mouse.
45 mouse.
46 </li> 45 </li>
47 <li> 46 <li>
48 dwm is only a single binary, it's source code is intended to never 47 dwm is only a single binary, it's source code is intended to never