diff --git a/workspace.cpp b/workspace.cpp index c62d073147..2cc43a5718 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -470,6 +470,11 @@ Workspace::~Workspace() (*it)->release(ReleaseReason::KWinShutsDown); xcb_delete_property(connection(), rootWindow(), atoms->kwin_running); + for (auto it = deleted.begin(); it != deleted.end();) { + emit deletedRemoved(*it); + it = deleted.erase(it); + } + delete RuleBook::self(); kwinApp()->config()->sync();