removed some more useless clunk
88c8ead3
2 file(s) · +4 −9
| 17 | 17 | # flags |
|
| 18 | 18 | CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" |
|
| 19 | 19 | LDFLAGS = -s ${LIBS} |
|
| 20 | - | CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK |
|
| 21 | - | LDFLAGS = -g ${LIBS} |
|
| 20 | + | #CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK |
|
| 21 | + | #LDFLAGS = -g ${LIBS} |
|
| 22 | 22 | ||
| 23 | 23 | # Solaris |
|
| 24 | 24 | #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" |
| 183 | 183 | int xerrordummy(Display *dpy, XErrorEvent *ee); |
|
| 184 | 184 | int xerrorstart(Display *dpy, XErrorEvent *ee); |
|
| 185 | 185 | void zoom(const char *arg); |
|
| 186 | - | void selectview(const char *arg); |
|
| 187 | 186 | ||
| 188 | 187 | /* variables */ |
|
| 189 | 188 | char stext[256], buf[256]; |
|
| 190 | - | double mwfact; |
|
| 191 | 189 | int screen, sx, sy, sw, sh; |
|
| 192 | 190 | int (*xerrorxlib)(Display *, XErrorEvent *); |
|
| 193 | - | unsigned int bh, bpos; |
|
| 194 | - | unsigned int blw = 0; |
|
| 191 | + | unsigned int bh, blw = 0; |
|
| 195 | 192 | unsigned int numlockmask = 0; |
|
| 196 | 193 | void (*handler[LASTEvent]) (XEvent *) = { |
|
| 197 | 194 | [ButtonPress] = buttonpress, |
|
| 219 | 216 | Cursor cursor[CurLast]; |
|
| 220 | 217 | Display *dpy; |
|
| 221 | 218 | DC dc = {0}; |
|
| 222 | - | Layout *lt; |
|
| 219 | + | Layout *lt = NULL; |
|
| 223 | 220 | Window root, barwin; |
|
| 224 | 221 | ||
| 225 | 222 | /* configuration, allows nested code to access above variables */ |
|
| 362 | 359 | ||
| 363 | 360 | void |
|
| 364 | 361 | cleanup(void) { |
|
| 365 | - | ||
| 366 | 362 | close(STDIN_FILENO); |
|
| 367 | 363 | while(stack) { |
|
| 368 | 364 | unban(stack); |
|
| 372 | 368 | XFreeFontSet(dpy, dc.font.set); |
|
| 373 | 369 | else |
|
| 374 | 370 | XFreeFont(dpy, dc.font.xfont); |
|
| 375 | - | ||
| 376 | 371 | XUngrabKey(dpy, AnyKey, AnyModifier, root); |
|
| 377 | 372 | XFreePixmap(dpy, dc.drawable); |
|
| 378 | 373 | XFreeGC(dpy, dc.gc); |
|