mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
fixed default active_workspace, and more use of set_focused_container_for(...)
This commit is contained in:
parent
b79a49a394
commit
6f424ff6b8
2 changed files with 5 additions and 3 deletions
|
|
@ -150,6 +150,7 @@ swayc_t *new_container(swayc_t *child, enum swayc_layouts layout) {
|
|||
// give them proper layouts
|
||||
cont->layout = workspace->layout;
|
||||
workspace->layout = layout;
|
||||
set_focused_container_for(workspace, get_focused_view(workspace));
|
||||
} else { // Or is built around container
|
||||
swayc_t *parent = replace_child(child, cont);
|
||||
if (parent) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue