mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-07 16:35:59 +01:00
fix fullscreen state when moving a fullscreen window
This commit is contained in:
parent
abf3464cfc
commit
4cfd62b72e
1 changed files with 15 additions and 0 deletions
|
@ -1454,6 +1454,14 @@ void CWindowManager::moveActiveWindowToWorkspace(int workspace) {
|
|||
const auto SAVEDFLOATSTATUS = PWINDOW->getIsFloating();
|
||||
const auto SAVEDDRAWABLE = PWINDOW->getDrawable();
|
||||
|
||||
// remove current workspace's fullscreen status if fullscreen
|
||||
if (PWINDOW->getFullscreen()) {
|
||||
const auto PWORKSPACE = getWorkspaceByID(PWINDOW->getWorkspaceID());
|
||||
if (PWORKSPACE) {
|
||||
PWORKSPACE->setHasFullscreenWindow(false);
|
||||
}
|
||||
}
|
||||
|
||||
fixWindowOnClose(PWINDOW);
|
||||
// deque reallocated
|
||||
LastWindow = SAVEDDRAWABLE;
|
||||
|
@ -1491,6 +1499,13 @@ void CWindowManager::moveActiveWindowToWorkspace(int workspace) {
|
|||
else
|
||||
Events::remapWindow(PWINDOW->getDrawable(), false, NEWMONITOR);
|
||||
|
||||
// fix fullscreen status
|
||||
const auto PWORKSPACE = getWorkspaceByID(workspace);
|
||||
if (PWORKSPACE) {
|
||||
// Should NEVER be false but let's be sure
|
||||
PWORKSPACE->setHasFullscreenWindow(PWINDOW->getFullscreen());
|
||||
}
|
||||
|
||||
PWINDOW->setDefaultSize(SAVEDDEFAULTSIZE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue