diff options
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index cdc9a888..8acdc772 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -141,9 +141,17 @@ bool set_focused_container(swayc_t *c) { // set focus if view_focus is unlocked if (!locked_view_focus) { wlc_view_focus(p->handle); - update_view_border(p); + if (p->parent->layout != L_TABBED + && p->parent->layout != L_STACKED) { + update_view_border(p); + } } } + + // rearrange if parent container is tabbed/stacked + if (p->parent->layout == L_TABBED || p->parent->layout == L_STACKED) { + arrange_windows(p->parent, -1, -1); + } } else if (p->type == C_WORKSPACE) { // remove previous focus if view_focus is unlocked if (!locked_view_focus) { |