summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-03-05 18:48:33 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-03-05 18:48:33 +0000
commit88c8ead3e8a22d311964c2a3ea0e384044f546c9 (patch)
tree76cbde4a705eea36c65f4b113c4815af0abd290e /dwm.c
parentimplemented the stuff as I discussed on dwm@ (diff)
downloaddwm-88c8ead3e8a22d311964c2a3ea0e384044f546c9.tar.gz
dwm-88c8ead3e8a22d311964c2a3ea0e384044f546c9.zip
removed some more useless clunk
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/dwm.c b/dwm.c
index a122180..2efc50b 100644
--- a/dwm.c
+++ b/dwm.c
@@ -183,15 +183,12 @@ int xerror(Display *dpy, XErrorEvent *ee);
183int xerrordummy(Display *dpy, XErrorEvent *ee); 183int xerrordummy(Display *dpy, XErrorEvent *ee);
184int xerrorstart(Display *dpy, XErrorEvent *ee); 184int xerrorstart(Display *dpy, XErrorEvent *ee);
185void zoom(const char *arg); 185void zoom(const char *arg);
186void selectview(const char *arg);
187 186
188/* variables */ 187/* variables */
189char stext[256], buf[256]; 188char stext[256], buf[256];
190double mwfact;
191int screen, sx, sy, sw, sh; 189int screen, sx, sy, sw, sh;
192int (*xerrorxlib)(Display *, XErrorEvent *); 190int (*xerrorxlib)(Display *, XErrorEvent *);
193unsigned int bh, bpos; 191unsigned int bh, blw = 0;
194unsigned int blw = 0;
195unsigned int numlockmask = 0; 192unsigned int numlockmask = 0;
196void (*handler[LASTEvent]) (XEvent *) = { 193void (*handler[LASTEvent]) (XEvent *) = {
197 [ButtonPress] = buttonpress, 194 [ButtonPress] = buttonpress,
@@ -219,7 +216,7 @@ Client *stack = NULL;
219Cursor cursor[CurLast]; 216Cursor cursor[CurLast];
220Display *dpy; 217Display *dpy;
221DC dc = {0}; 218DC dc = {0};
222Layout *lt; 219Layout *lt = NULL;
223Window root, barwin; 220Window root, barwin;
224 221
225/* configuration, allows nested code to access above variables */ 222/* configuration, allows nested code to access above variables */
@@ -362,7 +359,6 @@ checkotherwm(void) {
362 359
363void 360void
364cleanup(void) { 361cleanup(void) {
365
366 close(STDIN_FILENO); 362 close(STDIN_FILENO);
367 while(stack) { 363 while(stack) {
368 unban(stack); 364 unban(stack);
@@ -372,7 +368,6 @@ cleanup(void) {
372 XFreeFontSet(dpy, dc.font.set); 368 XFreeFontSet(dpy, dc.font.set);
373 else 369 else
374 XFreeFont(dpy, dc.font.xfont); 370 XFreeFont(dpy, dc.font.xfont);
375
376 XUngrabKey(dpy, AnyKey, AnyModifier, root); 371 XUngrabKey(dpy, AnyKey, AnyModifier, root);
377 XFreePixmap(dpy, dc.drawable); 372 XFreePixmap(dpy, dc.drawable);
378 XFreeGC(dpy, dc.gc); 373 XFreeGC(dpy, dc.gc);