move output damage to workspace destructor

This commit is contained in:
Tony Crisci 2018-04-03 19:36:57 -04:00
parent 035a88e0dc
commit 97b171649d
2 changed files with 3 additions and 1 deletions

View file

@ -381,7 +381,6 @@ void seat_set_focus_warp(struct sway_seat *seat,
if (last_ws) {
ipc_event_workspace(last_ws, container, "focus");
if (last_ws->children->length == 0) {
output_damage_whole(last_ws->parent->sway_output);
container_destroy(last_ws);
}
}

View file

@ -182,6 +182,9 @@ static struct sway_container *container_workspace_destroy(
}
_container_destroy(workspace);
output_damage_whole(output->sway_output);
return parent;
}