diff options
author | Ivan Chebykin <ivan@chebykin.org> | 2018-05-24 21:02:38 +0300 |
---|---|---|
committer | Ivan Chebykin <ivan@chebykin.org> | 2018-05-25 16:54:43 +0300 |
commit | 87af08966a5080345e2d4935d886b9fe91f66159 (patch) | |
tree | 776e53fe5447891f199a5907626ae7faa35968bd | |
parent | Merge pull request #2037 from emersion/wlroots-1000 (diff) | |
download | sway-87af08966a5080345e2d4935d886b9fe91f66159.tar.gz sway-87af08966a5080345e2d4935d886b9fe91f66159.tar.zst sway-87af08966a5080345e2d4935d886b9fe91f66159.zip |
Don't focus tabbed and stacked containers on mouseover
-rw-r--r-- | sway/input/cursor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 9a0b4f01..0f8202ea 100644 --- 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, | |||
162 | seat_set_focus_warp(cursor->seat, c, false); | 162 | seat_set_focus_warp(cursor->seat, c, false); |
163 | } | 163 | } |
164 | } else { | 164 | } else { |
165 | seat_set_focus_warp(cursor->seat, c, false); | 165 | // Don't switch focus on mouseover for stacked and tabbed layouts |
166 | if(c->parent && c->parent->layout != L_STACKED | ||
167 | && c->parent->layout != L_TABBED) { | ||
168 | seat_set_focus_warp(cursor->seat, c, false); | ||
169 | } | ||
166 | } | 170 | } |
167 | } | 171 | } |
168 | 172 | ||