mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix mouse focusing for horizontal/vertical views in tabbed containers
This commit is contained in:
parent
f85d3e15ba
commit
53516fa03f
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
|||
struct sway_container *p = c->parent;
|
||||
struct sway_container *first_tabbed_parent = c->parent;
|
||||
while (p) {
|
||||
if (p->layout == L_TABBED || p->layout == L_STACKED) {
|
||||
if ((p->layout == L_TABBED || p->layout == L_STACKED)
|
||||
&& !view_is_visible(c->sway_view)) {
|
||||
do_mouse_focus = false;
|
||||
first_tabbed_parent = p;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue