From cf64000e213d272d23c27bf7d62b86fd77abfa20 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 25 Dec 2015 22:32:42 +0100 Subject: [PATCH] Focus new sibling added to container This makes sure that the window being added to a container gets focus. --- sway/layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/layout.c b/sway/layout.c index d32f3dd0..d7265605 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -99,6 +99,8 @@ swayc_t *add_sibling(swayc_t *fixed, swayc_t *active) { list_insert(parent->children, i + 1, active); } active->parent = parent; + // focus new child + parent->focused = active; return active->parent; }