diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-04-25 11:34:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-04-25 11:34:27 -0400 |
commit | dba1195b4452dd7497d780b5d8c0b43f361f5aab (patch) | |
tree | 0b329d72536a75e5d960b25b4414b9d1fe4a5018 /sway/focus.c | |
parent | 7efa9ab34ae1dabcc7c87d22bfba0b1312c8c662 (diff) | |
parent | 05b4965a99417b74df13e9138b14347e7dc47685 (diff) |
Merge pull request #566 from mikkeloscar/tabbed-stacking-layout
Tabbed and stacked layout
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index cdc9a888..b4dfc423 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -141,9 +141,18 @@ 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 + swayc_t *parent = swayc_tabbed_stacked_parent(p); + if (parent != NULL) { + arrange_windows(parent, -1, -1); + } } else if (p->type == C_WORKSPACE) { // remove previous focus if view_focus is unlocked if (!locked_view_focus) { |