diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-25 22:32:42 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-25 22:32:42 +0100 |
commit | cf64000e213d272d23c27bf7d62b86fd77abfa20 (patch) | |
tree | af8f8b6a184777f85d81774be99cf88c56c776ce /sway | |
parent | Merge pull request #407 from mikkeloscar/trigger-on-move-floating (diff) | |
download | sway-cf64000e213d272d23c27bf7d62b86fd77abfa20.tar.gz sway-cf64000e213d272d23c27bf7d62b86fd77abfa20.tar.zst sway-cf64000e213d272d23c27bf7d62b86fd77abfa20.zip |
Focus new sibling added to container
This makes sure that the window being added to a container gets focus.
Diffstat (limited to 'sway')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
99 | list_insert(parent->children, i + 1, active); | 99 | list_insert(parent->children, i + 1, active); |
100 | } | 100 | } |
101 | active->parent = parent; | 101 | active->parent = parent; |
102 | // focus new child | ||
103 | parent->focused = active; | ||
102 | return active->parent; | 104 | return active->parent; |
103 | } | 105 | } |
104 | 106 | ||