unfocus on slow sloppy monitor focus
authorConnor Lane Smith <cls@lubutu.com>
Fri, 10 Feb 2012 00:36:08 +0000 (00:36 +0000)
committerConnor Lane Smith <cls@lubutu.com>
Fri, 10 Feb 2012 00:36:08 +0000 (00:36 +0000)
dwm.c

diff --git a/dwm.c b/dwm.c
index d39f11f..2d44442 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1212,6 +1212,7 @@ motionnotify(XEvent *e) {
        if(ev->window != root)
                return;
        if((m = recttomon(ev->x_root, ev->y_root, 1, 1)) != mon && mon) {
+               unfocus(selmon->sel, True);
                selmon = m;
                focus(NULL);
        }