Fix focusing from other containers

This commit is contained in:
Ivan Chebykin 2018-05-24 23:19:18 +03:00
parent 87af08966a
commit c1be4b0153
No known key found for this signature in database
GPG key ID: 34A8A768BB01746F

View file

@ -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);
}
}