about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
Diffstat (limited to 'event.c')
-rw-r--r--event.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/event.c b/event.c
index 84b0698..f29038a 100644
--- a/event.c
+++ b/event.c
@@ -143,9 +143,12 @@ static void
 expose(XEvent *e)
 {
 	XExposeEvent *ev = &e->xexpose;
+	Client *c;
 
 	if(ev->count == 0) {
-		if(ev->window == barwin)
+		if((c = getclient(ev->window)))
+			draw_client(c);
+		else if(ev->window == barwin)
 			draw_bar();
 	}
 }