event.c
changeset 706 163fdca8f064
parent 705 1e571a8c7552
child 707 c3c57faef013
--- a/event.c	Fri Jan 19 14:38:09 2007 +0100
+++ b/event.c	Fri Jan 19 15:01:51 2007 +0100
@@ -273,9 +273,9 @@
 	XCrossingEvent *ev = &e->xcrossing;
 
 	if((ev->window == root) && !ev->same_screen) {
+		if(sel)
+			focus(NULL);
 		issel = False;
-		if(sel)
-			XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
 	}
 }