summaryrefslogtreecommitdiffstats
path: root/sway/focus.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/focus.c')
-rw-r--r--sway/focus.c10
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) {
141 // set focus if view_focus is unlocked 141 // set focus if view_focus is unlocked
142 if (!locked_view_focus) { 142 if (!locked_view_focus) {
143 wlc_view_focus(p->handle); 143 wlc_view_focus(p->handle);
144 update_view_border(p); 144 if (p->parent->layout != L_TABBED
145 && p->parent->layout != L_STACKED) {
146 update_view_border(p);
147 }
145 } 148 }
146 } 149 }
150
151 // rearrange if parent container is tabbed/stacked
152 if (p->parent->layout == L_TABBED || p->parent->layout == L_STACKED) {
153 arrange_windows(p->parent, -1, -1);
154 }
147 } else if (p->type == C_WORKSPACE) { 155 } else if (p->type == C_WORKSPACE) {
148 // remove previous focus if view_focus is unlocked 156 // remove previous focus if view_focus is unlocked
149 if (!locked_view_focus) { 157 if (!locked_view_focus) {