JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
this variant is known to work, but focus() is ugly - we need in general a better...
[dwm.git] / event.c
diff --git a/event.c b/event.c
index e0718d3..2e021d5 100644 (file)
--- a/event.c
+++ b/event.c
@@ -269,8 +269,8 @@ leavenotify(XEvent *e) {
        XCrossingEvent *ev = &e->xcrossing;
 
        if((ev->window == root) && !ev->same_screen) {
-               focus(NULL);
                issel = False;
+               focus(sel);
        }
 }