mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 00:41:28 +00:00
Make sure to send the empty
event
This commit is contained in:
parent
409bc681ff
commit
5438d6631f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue