mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 01:05:58 +01:00
unset fullscreen in onWindowRemoved
This commit is contained in:
parent
bf5844d607
commit
e1d7a13333
2 changed files with 4 additions and 2 deletions
|
@ -21,6 +21,9 @@ void IHyprLayout::onWindowCreated(CWindow* pWindow) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void IHyprLayout::onWindowRemoved(CWindow* pWindow) {
|
void IHyprLayout::onWindowRemoved(CWindow* pWindow) {
|
||||||
|
if (pWindow->m_bIsFullscreen)
|
||||||
|
g_pCompositor->setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
||||||
|
|
||||||
if (pWindow->m_bIsFloating) {
|
if (pWindow->m_bIsFloating) {
|
||||||
onWindowRemovedFloating(pWindow);
|
onWindowRemovedFloating(pWindow);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -930,9 +930,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) {
|
||||||
PWINDOW->m_vPosition = PWINDOW->m_vRealPosition.vec();
|
PWINDOW->m_vPosition = PWINDOW->m_vRealPosition.vec();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (WASFULLSCREEN) {
|
if (WASFULLSCREEN)
|
||||||
g_pCompositor->setWindowFullscreen(PWINDOW, true, OLDWORKSPACE->m_efFullscreenMode);
|
g_pCompositor->setWindowFullscreen(PWINDOW, true, OLDWORKSPACE->m_efFullscreenMode);
|
||||||
}
|
|
||||||
|
|
||||||
if (!g_pCompositor->isWorkspaceSpecial(WORKSPACEID)) {
|
if (!g_pCompositor->isWorkspaceSpecial(WORKSPACEID)) {
|
||||||
g_pKeybindManager->changeworkspace(args);
|
g_pKeybindManager->changeworkspace(args);
|
||||||
|
|
Loading…
Reference in a new issue