summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.mk4
-rw-r--r--dwm.c9
2 files changed, 4 insertions, 9 deletions
diff --git a/config.mk b/config.mk
index 96811e0..b63e2ca 100644
--- a/config.mk
+++ b/config.mk
@@ -17,8 +17,8 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11
17# flags 17# flags
18CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\" 18CFLAGS = -Os ${INCS} -DVERSION=\"${VERSION}\"
19LDFLAGS = -s ${LIBS} 19LDFLAGS = -s ${LIBS}
20CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK 20#CFLAGS = -g -std=c99 -pedantic -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DWORK
21LDFLAGS = -g ${LIBS} 21#LDFLAGS = -g ${LIBS}
22 22
23# Solaris 23# Solaris
24#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" 24#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
diff --git a/dwm.c b/dwm.c
index a122180..2efc50b 100644
--- a/dwm.c
+++ b/dwm.c
@@ -183,15 +183,12 @@ int xerror(Display *dpy, XErrorEvent *ee);
183int xerrordummy(Display *dpy, XErrorEvent *ee); 183int xerrordummy(Display *dpy, XErrorEvent *ee);
184int xerrorstart(Display *dpy, XErrorEvent *ee); 184int xerrorstart(Display *dpy, XErrorEvent *ee);
185void zoom(const char *arg); 185void zoom(const char *arg);
186void selectview(const char *arg);
187 186
188/* variables */ 187/* variables */
189char stext[256], buf[256]; 188char stext[256], buf[256];
190double mwfact;
191int screen, sx, sy, sw, sh; 189int screen, sx, sy, sw, sh;
192int (*xerrorxlib)(Display *, XErrorEvent *); 190int (*xerrorxlib)(Display *, XErrorEvent *);
193unsigned int bh, bpos; 191unsigned int bh, blw = 0;
194unsigned int blw = 0;
195unsigned int numlockmask = 0; 192unsigned int numlockmask = 0;
196void (*handler[LASTEvent]) (XEvent *) = { 193void (*handler[LASTEvent]) (XEvent *) = {
197 [ButtonPress] = buttonpress, 194 [ButtonPress] = buttonpress,
@@ -219,7 +216,7 @@ Client *stack = NULL;
219Cursor cursor[CurLast]; 216Cursor cursor[CurLast];
220Display *dpy; 217Display *dpy;
221DC dc = {0}; 218DC dc = {0};
222Layout *lt; 219Layout *lt = NULL;
223Window root, barwin; 220Window 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
363void 360void
364cleanup(void) { 361cleanup(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);