about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-18 11:11:40 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-18 11:11:40 +0100
commit96e1b25c8ceca2993b2044d000f5827c19326c8a (patch)
tree9667fa34771fde127fed53da684b8e7ce806b7be /event.c
parentcaf5a162716ebdcca0ba7dda1e7335697f3b9208 (diff)
downloaddwm-96e1b25c8ceca2993b2044d000f5827c19326c8a.tar.gz
applied a modified version of Christof Musik's multihead patch (though this is not sure if it works in all cases, have to wait for an ACK by Christof)
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 75c3fa0..c679f9c 100644
--- a/event.c
+++ b/event.c
@@ -270,8 +270,11 @@ static void
 leavenotify(XEvent *e) {
 	XCrossingEvent *ev = &e->xcrossing;
 
-	if((ev->window == root) && !ev->same_screen)
+	if((ev->window == root) && !ev->same_screen) {
 		issel = False;
+		if(sel)
+			XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
+	}
 }
 
 static void