fix closing fullscreen

This commit is contained in:
vaxerski 2021-12-11 14:53:51 +01:00
parent 00eebae66c
commit 89e3f9e533

View file

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