# HG changeset patch # User Anselm R Garbe # Date 1204742913 0 # Node ID 160af328ab51cc6fd22d70b098a40c30baa71fc0 # Parent 76f6c8659f40c7aca1752ef20958bfc59db90305 removed some more useless clunk diff -r 76f6c8659f40 -r 160af328ab51 config.mk --- a/config.mk Wed Mar 05 18:31:08 2008 +0000 +++ b/config.mk Wed Mar 05 18:48:33 2008 +0000 @@ -17,8 +17,8 @@ # flags CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" LDFLAGS = -s ${LIBS} -CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK -LDFLAGS = -g ${LIBS} +#CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK +#LDFLAGS = -g ${LIBS} # Solaris #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" diff -r 76f6c8659f40 -r 160af328ab51 dwm.c --- a/dwm.c Wed Mar 05 18:31:08 2008 +0000 +++ b/dwm.c Wed Mar 05 18:48:33 2008 +0000 @@ -183,15 +183,12 @@ int xerrordummy(Display *dpy, XErrorEvent *ee); int xerrorstart(Display *dpy, XErrorEvent *ee); void zoom(const char *arg); -void selectview(const char *arg); /* variables */ char stext[256], buf[256]; -double mwfact; int screen, sx, sy, sw, sh; int (*xerrorxlib)(Display *, XErrorEvent *); -unsigned int bh, bpos; -unsigned int blw = 0; +unsigned int bh, blw = 0; unsigned int numlockmask = 0; void (*handler[LASTEvent]) (XEvent *) = { [ButtonPress] = buttonpress, @@ -219,7 +216,7 @@ Cursor cursor[CurLast]; Display *dpy; DC dc = {0}; -Layout *lt; +Layout *lt = NULL; Window root, barwin; /* configuration, allows nested code to access above variables */ @@ -362,7 +359,6 @@ void cleanup(void) { - close(STDIN_FILENO); while(stack) { unban(stack); @@ -372,7 +368,6 @@ XFreeFontSet(dpy, dc.font.set); else XFreeFont(dpy, dc.font.xfont); - XUngrabKey(dpy, AnyKey, AnyModifier, root); XFreePixmap(dpy, dc.drawable); XFreeGC(dpy, dc.gc);