mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-01 06:20:17 +01:00
move output damage to workspace destructor
This commit is contained in:
parent
035a88e0dc
commit
97b171649d
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -182,6 +182,9 @@ static struct sway_container *container_workspace_destroy(
|
|||
}
|
||||
|
||||
_container_destroy(workspace);
|
||||
|
||||
output_damage_whole(output->sway_output);
|
||||
|
||||
return parent;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue