mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 19:31:29 +00:00
Merge pull request #408 from mikkeloscar/add-focus-sibling
Focus new sibling added to container
This commit is contained in:
commit
33a74bfb93
|
@ -99,6 +99,8 @@ swayc_t *add_sibling(swayc_t *fixed, swayc_t *active) {
|
||||||
list_insert(parent->children, i + 1, active);
|
list_insert(parent->children, i + 1, active);
|
||||||
}
|
}
|
||||||
active->parent = parent;
|
active->parent = parent;
|
||||||
|
// focus new child
|
||||||
|
parent->focused = active;
|
||||||
return active->parent;
|
return active->parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue