This commit is contained in:
vaxerski 2022-03-19 17:00:52 +01:00
parent 0c88c0310e
commit dba7bbdcf3
2 changed files with 19 additions and 1 deletions

View file

@ -232,6 +232,8 @@ void Events::listener_commitWindow(wl_listener* listener, void* data) {
void Events::listener_destroyWindow(wl_listener* listener, void* data) {
CWindow* PWINDOW = wl_container_of(listener, PWINDOW, listen_destroyWindow);
g_pLayoutManager->getCurrentLayout()->onWindowRemoved(PWINDOW);
g_pCompositor->removeWindowFromVectorSafe(PWINDOW);
Debug::log(LOG, "Window %x destroyed", PWINDOW);