diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-12-25 14:52:14 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-12-25 14:52:14 -0700 |
commit | 33a74bfb9323958c2fb1e1081c92ba1b683a6a5d (patch) | |
tree | af8f8b6a184777f85d81774be99cf88c56c776ce | |
parent | ed46fa7230e69ce07c9437fac9d9599c377e19bc (diff) | |
parent | cf64000e213d272d23c27bf7d62b86fd77abfa20 (diff) |
Merge pull request #408 from mikkeloscar/add-focus-sibling
Focus new sibling added to container
-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) { list_insert(parent->children, i + 1, active); } active->parent = parent; + // focus new child + parent->focused = active; return active->parent; } |