summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-24 23:19:18 +0300
committerLibravatar Ivan Chebykin <ivan@chebykin.org>2018-05-25 16:54:43 +0300
commitc1be4b0153fc18b130ce795e71c8600c2dd31fc0 (patch)
tree92050eed897c625b35ca6a627d19611f8f0a07fe /sway
parentDon't focus tabbed and stacked containers on mouseover (diff)
downloadsway-c1be4b0153fc18b130ce795e71c8600c2dd31fc0.tar.gz
sway-c1be4b0153fc18b130ce795e71c8600c2dd31fc0.tar.zst
sway-c1be4b0153fc18b130ce795e71c8600c2dd31fc0.zip
Fix focusing from other containers
Diffstat (limited to 'sway')
-rw-r--r--sway/input/cursor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 0f8202ea..72dc8700 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -163,8 +163,9 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
163 } 163 }
164 } else { 164 } else {
165 // Don't switch focus on mouseover for stacked and tabbed layouts 165 // Don't switch focus on mouseover for stacked and tabbed layouts
166 if(c->parent && c->parent->layout != L_STACKED 166 if(focus->parent == c->parent &&
167 && c->parent->layout != L_TABBED) { 167 (c->parent->layout != L_STACKED
168 || c->parent->layout != L_TABBED)) {
168 seat_set_focus_warp(cursor->seat, c, false); 169 seat_set_focus_warp(cursor->seat, c, false);
169 } 170 }
170 } 171 }