fix closing fullscreen

This commit is contained in:
vaxerski 2021-12-11 14:53:51 +01:00
parent 00eebae66c
commit 89e3f9e533
1 changed files with 3 additions and 3 deletions

View File

@ -1045,12 +1045,12 @@ void CWindowManager::closeWindowAllChecks(int64_t id) {
if (!CLOSEDWINDOW)
return; // It's not in the vec, ignore. (weird)
if (!CLOSEDWINDOW->getIsFloating())
g_pWindowManager->fixWindowOnClose(CLOSEDWINDOW);
if (const auto WORKSPACE = getWorkspaceByID(CLOSEDWINDOW->getWorkspaceID()); WORKSPACE && CLOSEDWINDOW->getFullscreen())
WORKSPACE->setHasFullscreenWindow(false);
if (!CLOSEDWINDOW->getIsFloating())
g_pWindowManager->fixWindowOnClose(CLOSEDWINDOW);
// delete off of the arr
g_pWindowManager->removeWindowFromVectorSafe(id);
}