]> git.armaanb.net Git - dwm.git/commitdiff
removed some more useless clunk
authorAnselm R Garbe <garbeam@gmail.com>
Wed, 5 Mar 2008 18:48:33 +0000 (18:48 +0000)
committerAnselm R Garbe <garbeam@gmail.com>
Wed, 5 Mar 2008 18:48:33 +0000 (18:48 +0000)
config.mk
dwm.c

index 96811e07550417150ae50cc7d289d7060d5fb16a..b63e2ca2e0b92f3d48da921db60d921f1b541662 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
 # 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 --git a/dwm.c b/dwm.c
index a1221800916d1491ea37cb06c1822c78234c128b..2efc50ba6ca2716d4f3a3acde6bb91043cbf44ac 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -183,15 +183,12 @@ int xerror(Display *dpy, XErrorEvent *ee);
 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 @@ Client *stack = NULL;
 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 @@ checkotherwm(void) {
 
 void
 cleanup(void) {
-
        close(STDIN_FILENO);
        while(stack) {
                unban(stack);
@@ -372,7 +368,6 @@ cleanup(void) {
                XFreeFontSet(dpy, dc.font.set);
        else
                XFreeFont(dpy, dc.font.xfont);
-
        XUngrabKey(dpy, AnyKey, AnyModifier, root);
        XFreePixmap(dpy, dc.drawable);
        XFreeGC(dpy, dc.gc);