Make sure to send the empty event

This commit is contained in:
Marko 2023-06-10 03:10:05 +02:00
parent 409bc681ff
commit 5438d6631f

View file

@ -155,10 +155,6 @@ void workspace_begin_destroy(struct sway_workspace *workspace) {
}
void workspace_consider_destroy(struct sway_workspace *ws) {
if (ws->persistent) {
return;
}
if (ws->tiling->length || ws->floating->length) {
return;
}
@ -175,6 +171,11 @@ void workspace_consider_destroy(struct sway_workspace *ws) {
}
}
if (ws->persistent) {
ipc_event_workspace(NULL, ws, "empty");
return;
}
workspace_begin_destroy(ws);
}