diff options
-rw-r--r-- | sway/input/seat.c | 1 | ||||
-rw-r--r-- | sway/tree/container.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index d752acb8..c326f176 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -381,7 +381,6 @@ void seat_set_focus_warp(struct sway_seat *seat, | |||
381 | if (last_ws) { | 381 | if (last_ws) { |
382 | ipc_event_workspace(last_ws, container, "focus"); | 382 | ipc_event_workspace(last_ws, container, "focus"); |
383 | if (last_ws->children->length == 0) { | 383 | if (last_ws->children->length == 0) { |
384 | output_damage_whole(last_ws->parent->sway_output); | ||
385 | container_destroy(last_ws); | 384 | container_destroy(last_ws); |
386 | } | 385 | } |
387 | } | 386 | } |
diff --git a/sway/tree/container.c b/sway/tree/container.c index 2fd03067..fdbb2922 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -182,6 +182,9 @@ static struct sway_container *container_workspace_destroy( | |||
182 | } | 182 | } |
183 | 183 | ||
184 | _container_destroy(workspace); | 184 | _container_destroy(workspace); |
185 | |||
186 | output_damage_whole(output->sway_output); | ||
187 | |||
185 | return parent; | 188 | return parent; |
186 | } | 189 | } |
187 | 190 | ||