From: Connor Lane Smith Date: Fri, 10 Feb 2012 00:36:08 +0000 (+0000) Subject: unfocus on slow sloppy monitor focus X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=54c3044decc9848ba18c137dd3558dc8bdf71f34;p=dwm.git unfocus on slow sloppy monitor focus --- diff --git a/dwm.c b/dwm.c index d39f11f..2d44442 100644 --- 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); }