diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-03-05 18:48:33 +0000 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-03-05 18:48:33 +0000 |
| commit | 88c8ead3e8a22d311964c2a3ea0e384044f546c9 (patch) | |
| tree | 76cbde4a705eea36c65f4b113c4815af0abd290e /dwm.c | |
| parent | implemented the stuff as I discussed on dwm@ (diff) | |
| download | dwm-88c8ead3e8a22d311964c2a3ea0e384044f546c9.tar.gz dwm-88c8ead3e8a22d311964c2a3ea0e384044f546c9.zip | |
removed some more useless clunk
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 9 |
1 files changed, 2 insertions, 7 deletions
| @@ -183,15 +183,12 @@ int xerror(Display *dpy, XErrorEvent *ee); | |||
| 183 | int xerrordummy(Display *dpy, XErrorEvent *ee); | 183 | int xerrordummy(Display *dpy, XErrorEvent *ee); |
| 184 | int xerrorstart(Display *dpy, XErrorEvent *ee); | 184 | int xerrorstart(Display *dpy, XErrorEvent *ee); |
| 185 | void zoom(const char *arg); | 185 | void zoom(const char *arg); |
| 186 | void selectview(const char *arg); | ||
| 187 | 186 | ||
| 188 | /* variables */ | 187 | /* variables */ |
| 189 | char stext[256], buf[256]; | 188 | char stext[256], buf[256]; |
| 190 | double mwfact; | ||
| 191 | int screen, sx, sy, sw, sh; | 189 | int screen, sx, sy, sw, sh; |
| 192 | int (*xerrorxlib)(Display *, XErrorEvent *); | 190 | int (*xerrorxlib)(Display *, XErrorEvent *); |
| 193 | unsigned int bh, bpos; | 191 | unsigned int bh, blw = 0; |
| 194 | unsigned int blw = 0; | ||
| 195 | unsigned int numlockmask = 0; | 192 | unsigned int numlockmask = 0; |
| 196 | void (*handler[LASTEvent]) (XEvent *) = { | 193 | void (*handler[LASTEvent]) (XEvent *) = { |
| 197 | [ButtonPress] = buttonpress, | 194 | [ButtonPress] = buttonpress, |
| @@ -219,7 +216,7 @@ Client *stack = NULL; | |||
| 219 | Cursor cursor[CurLast]; | 216 | Cursor cursor[CurLast]; |
| 220 | Display *dpy; | 217 | Display *dpy; |
| 221 | DC dc = {0}; | 218 | DC dc = {0}; |
| 222 | Layout *lt; | 219 | Layout *lt = NULL; |
| 223 | Window root, barwin; | 220 | Window 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 | ||
| 363 | void | 360 | void |
| 364 | cleanup(void) { | 361 | cleanup(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); |
