aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input
diff options
context:
space:
mode:
authorLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-25 17:22:25 +0300
committerLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-25 17:22:25 +0300
commit53516fa03fd291cdcedbd9e27457cf1cfd40f903 (patch)
tree6a8cfb236c169007146a51a5e65138b55505d50f /sway/input
parentFixed styling issues (diff)
downloadsway-53516fa03fd291cdcedbd9e27457cf1cfd40f903.tar.gz
sway-53516fa03fd291cdcedbd9e27457cf1cfd40f903.tar.zst
sway-53516fa03fd291cdcedbd9e27457cf1cfd40f903.zip
Fix mouse focusing for horizontal/vertical views in tabbed containers
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index bd23af6f..4e01df70 100644
--- 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,
170 struct sway_container *p = c->parent; 170 struct sway_container *p = c->parent;
171 struct sway_container *first_tabbed_parent = c->parent; 171 struct sway_container *first_tabbed_parent = c->parent;
172 while (p) { 172 while (p) {
173 if (p->layout == L_TABBED || p->layout == L_STACKED) { 173 if ((p->layout == L_TABBED || p->layout == L_STACKED)
174 && !view_is_visible(c->sway_view)) {
174 do_mouse_focus = false; 175 do_mouse_focus = false;
175 first_tabbed_parent = p; 176 first_tabbed_parent = p;
176 } 177 }