diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 16:09:27 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-04-02 16:09:27 -0400 |
commit | d434da563239c43c5fe417ce83b23b417f2ab635 (patch) | |
tree | e154daaf43c42d11c5afb8b7739ae6b52dd01215 /sway/tree/container.c | |
parent | fix workspace splits (diff) | |
parent | Merge pull request #1699 from acrisci/seat-fixes (diff) | |
download | sway-d434da563239c43c5fe417ce83b23b417f2ab635.tar.gz sway-d434da563239c43c5fe417ce83b23b417f2ab635.tar.zst sway-d434da563239c43c5fe417ce83b23b417f2ab635.zip |
Merge branch 'wlroots' into split-containers
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 9205d929..4db93ce8 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -89,8 +89,8 @@ static struct sway_container *_container_destroy(struct sway_container *cont) { | |||
89 | // container_remove_child, which removes child from this container | 89 | // container_remove_child, which removes child from this container |
90 | while (cont->children != NULL && cont->children->length != 0) { | 90 | while (cont->children != NULL && cont->children->length != 0) { |
91 | struct sway_container *child = cont->children->items[0]; | 91 | struct sway_container *child = cont->children->items[0]; |
92 | container_remove_child(child); | ||
92 | container_destroy(child); | 93 | container_destroy(child); |
93 | list_del(cont->children, 0); | ||
94 | } | 94 | } |
95 | } | 95 | } |
96 | if (cont->marks) { | 96 | if (cont->marks) { |
@@ -172,7 +172,7 @@ struct sway_container *container_output_create( | |||
172 | struct sway_seat *seat = NULL; | 172 | struct sway_seat *seat = NULL; |
173 | wl_list_for_each(seat, &input_manager->seats, link) { | 173 | wl_list_for_each(seat, &input_manager->seats, link) { |
174 | if (!seat->has_focus) { | 174 | if (!seat->has_focus) { |
175 | sway_seat_set_focus(seat, ws); | 175 | seat_set_focus(seat, ws); |
176 | } | 176 | } |
177 | } | 177 | } |
178 | 178 | ||