diff -r 1e571a8c7552 -r 163fdca8f064 event.c --- 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]); } }