diff options
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | dwm.c | 9 |
2 files changed, 4 insertions, 9 deletions
| @@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 | |||
| 17 | # flags | 17 | # flags |
| 18 | CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" | 18 | CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" |
| 19 | LDFLAGS = -s ${LIBS} | 19 | LDFLAGS = -s ${LIBS} |
| 20 | CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK | 20 | #CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK |
| 21 | LDFLAGS = -g ${LIBS} | 21 | #LDFLAGS = -g ${LIBS} |
| 22 | 22 | ||
| 23 | # Solaris | 23 | # Solaris |
| 24 | #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" | 24 | #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" |
| @@ -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); |
