commit 53516fa03fd291cdcedbd9e27457cf1cfd40f903
parent f85d3e15ba058daf5b7325ab51a8e5ccca18e8d4
Author: Ivan Chebykin <ivan@chebykin.org>
Date: Fri, 25 May 2018 17:22:25 +0300
Fix mouse focusing for horizontal/vertical views in tabbed containers
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
@@ -170,7 +170,8 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
struct sway_container *p = c->parent;
struct sway_container *first_tabbed_parent = c->parent;
while (p) {
- if (p->layout == L_TABBED || p->layout == L_STACKED) {
+ if ((p->layout == L_TABBED || p->layout == L_STACKED)
+ && !view_is_visible(c->sway_view)) {
do_mouse_focus = false;
first_tabbed_parent = p;
}