aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/tree/layout.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c
index fe0243b6..82502e1b 100644
--- a/sway/tree/layout.c
+++ b/sway/tree/layout.c
@@ -899,10 +899,7 @@ struct sway_container *container_split(struct sway_container *child,
if (set_focus) {
seat_set_focus(seat, cont);
- if (cont->parent->layout == L_TABBED
- || cont->parent->layout == L_STACKED) {
- seat_set_focus(seat, child);
- }
+ seat_set_focus(seat, child);
}
container_notify_subtree_changed(cont);