mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
move view and workspace destructors to container.c
This commit is contained in:
parent
7afbe9284f
commit
b4c5f79725
5 changed files with 83 additions and 62 deletions
|
|
@ -381,7 +381,8 @@ 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) {
|
||||
container_workspace_destroy(last_ws);
|
||||
output_damage_whole(last_ws->parent->sway_output);
|
||||
container_destroy(last_ws);
|
||||
}
|
||||
}
|
||||
struct sway_container *last_output = last_focus;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue