about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-14 18:46:12 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-14 18:46:12 +0200
commit59b4a5e4cac68dfe6d245b8b708c3cb805f49f6d (patch)
tree666a20f5eae3ea5355b5f8587f68b024bd799a0f
parent82384e385ee19fc553148f7aa73fafdcbe40461b (diff)
downloaddwm-59b4a5e4cac68dfe6d245b8b708c3cb805f49f6d.tar.gz
draw bar on exposure ;)
-rw-r--r--Makefile2
-rw-r--r--config.mk10
-rw-r--r--event.c4
3 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2b243ef..536960b 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ dwm: ${OBJ}
 	@${CC} -o $@ ${OBJ} ${LDFLAGS}
 
 clean:
-	rm -f dwm *.o core
+	rm -f dwm *.o core dwm-${VERSION}.tar.gz
 
 dist: clean
 	mkdir -p dwm-${VERSION}
diff --git a/config.mk b/config.mk
index 96ef58a..dcea1f8 100644
--- a/config.mk
+++ b/config.mk
@@ -14,12 +14,12 @@ VERSION = 0.1
 LIBS = -L${PREFIX}/lib -L/usr/lib -lc -L${X11LIB} -lX11
 
 # Linux/BSD
-CFLAGS = -Os -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
-	-DVERSION=\"${VERSION}\"
-LDFLAGS = ${LIBS}
-#CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+#CFLAGS = -Os -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
 #	-DVERSION=\"${VERSION}\"
-#LDFLAGS = -g ${LIBS}
+#LDFLAGS = ${LIBS}
+CFLAGS = -g -Wall -O2 -I. -I${PREFIX}/include -I/usr/include -I${X11INC} \
+	-DVERSION=\"${VERSION}\"
+LDFLAGS = -g ${LIBS}
 
 
 # Solaris
diff --git a/event.c b/event.c
index b027a3e..61dcec5 100644
--- a/event.c
+++ b/event.c
@@ -142,7 +142,9 @@ expose(XEvent *e)
 	Client *c;
 
 	if(ev->count == 0) {
-		if((c = gettitle(ev->window)))
+		if(barwin == ev->window)
+			draw_bar();
+		else if((c = gettitle(ev->window)))
 			draw_client(c);
 	}
 }