I think this is the best solution of multihead support
[dwm.git] / event.c
diff --git a/event.c b/event.c
index e0718d3..c913320 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(NULL);
        }
 }