diff options
author | taiyu <taiyu.len@gmail.com> | 2015-08-19 16:15:17 -0700 |
---|---|---|
committer | taiyu <taiyu.len@gmail.com> | 2015-08-19 16:15:17 -0700 |
commit | 6f424ff6b82d86a174319ffd534e517b2ae6d367 (patch) | |
tree | 2ebf5631c4ddf3fd855f1e655fe20d5175a8e801 /sway/container.c | |
parent | b79a49a394ede1c07773dadab97b00a4c7b4d835 (diff) |
fixed default active_workspace, and more use of set_focused_container_for(...)
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 0a89f634..0a75643d 100644 --- a/sway/container.c +++ b/sway/container.c @@ -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) { |