sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c1be4b0153fc18b130ce795e71c8600c2dd31fc0
parent 87af08966a5080345e2d4935d886b9fe91f66159
Author: Ivan Chebykin <ivan@chebykin.org>
Date:   Thu, 24 May 2018 23:19:18 +0300

Fix focusing from other containers

Diffstat:
Msway/input/cursor.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 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, } } else { // Don't switch focus on mouseover for stacked and tabbed layouts - if(c->parent && c->parent->layout != L_STACKED - && c->parent->layout != L_TABBED) { + if(focus->parent == c->parent && + (c->parent->layout != L_STACKED + || c->parent->layout != L_TABBED)) { seat_set_focus_warp(cursor->seat, c, false); } }