JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
deciding for focus(NULL);
[dwm.git] / event.c
diff --git a/event.c b/event.c
index a5e75ca..20ab599 100644 (file)
--- a/event.c
+++ b/event.c
@@ -273,9 +273,9 @@ leavenotify(XEvent *e) {
        XCrossingEvent *ev = &e->xcrossing;
 
        if((ev->window == root) && !ev->same_screen) {
-               issel = False;
                if(sel)
-                       XSetWindowBorder(dpy, sel->win, dc.norm[ColBorder]);
+                       focus(NULL);
+               issel = False;
        }
 }