mirror of
https://github.com/NickHu/sway
synced 2024-12-30 22:23:30 +01:00
Fix focusing from other containers
This commit is contained in:
parent
87af08966a
commit
c1be4b0153
1 changed files with 3 additions and 2 deletions
|
@ -163,8 +163,9 @@ void cursor_send_pointer_motion(struct sway_cursor *cursor, uint32_t time_msec,
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Don't switch focus on mouseover for stacked and tabbed layouts
|
// Don't switch focus on mouseover for stacked and tabbed layouts
|
||||||
if(c->parent && c->parent->layout != L_STACKED
|
if(focus->parent == c->parent &&
|
||||||
&& c->parent->layout != L_TABBED) {
|
(c->parent->layout != L_STACKED
|
||||||
|
|| c->parent->layout != L_TABBED)) {
|
||||||
seat_set_focus_warp(cursor->seat, c, false);
|
seat_set_focus_warp(cursor->seat, c, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue