commit 87af08966a5080345e2d4935d886b9fe91f66159
parent 50305055c900f8157a91c49a62cccc00bec49ea5
Author: Ivan Chebykin <ivan@chebykin.org>
Date: Thu, 24 May 2018 21:02:38 +0300
Don't focus tabbed and stacked containers on mouseover
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
@@ -162,7 +162,11 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
seat_set_focus_warp(cursor->seat, c, false);
}
} else {
- seat_set_focus_warp(cursor->seat, c, false);
+ // Don't switch focus on mouseover for stacked and tabbed layouts
+ if(c->parent && c->parent->layout != L_STACKED
+ && c->parent->layout != L_TABBED) {
+ seat_set_focus_warp(cursor->seat, c, false);
+ }
}
}