mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +01:00
fix closing fullscreen
This commit is contained in:
parent
00eebae66c
commit
89e3f9e533
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue