mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:09:48 +01:00
Keep fullscreen mode in moveWindowToWorkspaceSafe (#2191)
Moving a maximised window would always result in the window being fullscreen instead of maximised
This commit is contained in:
parent
5c3684d0cc
commit
fdb772832f
1 changed files with 3 additions and 2 deletions
|
@ -2349,6 +2349,7 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const bool FULLSCREEN = pWindow->m_bIsFullscreen;
|
const bool FULLSCREEN = pWindow->m_bIsFullscreen;
|
||||||
|
const auto FULLSCREENMODE = getWorkspaceByID(pWindow->m_iWorkspaceID)->m_efFullscreenMode;
|
||||||
|
|
||||||
if (FULLSCREEN)
|
if (FULLSCREEN)
|
||||||
setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
setWindowFullscreen(pWindow, false, FULLSCREEN_FULL);
|
||||||
|
@ -2374,5 +2375,5 @@ void CCompositor::moveWindowToWorkspaceSafe(CWindow* pWindow, CWorkspace* pWorks
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FULLSCREEN)
|
if (FULLSCREEN)
|
||||||
setWindowFullscreen(pWindow, true, FULLSCREEN_FULL);
|
setWindowFullscreen(pWindow, true, FULLSCREENMODE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue