fix bug, m is always defined
@@ -2295,15 +2295,13 @@ motionnotify(XEvent *e)
tagwidth = gettagwidth();
// detect mouse hovering over other monitor
- if (focusfollowsmouse) {
m = recttomon(ev->x_root, ev->y_root, 1, 1);
- if (m && m != selmon) {
+ if (m && m != selmon && focusfollowsmouse) {
unfocus(selmon->sel, 1);
selmon = m;
focus(NULL);
return;
}
- }
// leave small deactivator zone
if (ev->y_root >= bh - 3) {
