diff options
author | thejch <[email protected]> | 2024-03-30 09:57:43 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-03-30 16:57:43 +0000 |
commit | a17d7ba87b661e0f152fa59bc9efdf1da2a84c86 (patch) | |
tree | ee717b7a63eeedc8240fd707bc423cf7163577ab | |
parent | 6fb8f502050c269597636c3b0bfcf046f7f6a947 (diff) | |
download | Hyprland-a17d7ba87b661e0f152fa59bc9efdf1da2a84c86.tar.gz Hyprland-a17d7ba87b661e0f152fa59bc9efdf1da2a84c86.zip |
dispatchers: fix swap workspaces wrong positioning of floating windows (#5328)
-rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 7e81797f..6276b735 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2024,7 +2024,7 @@ void CCompositor::swapActiveWorkspaces(CMonitor* pMonitorA, CMonitor* pMonitorB) // additionally, move floating and fs windows manually if (w->m_bIsFloating) - w->m_vRealPosition = w->m_vRealPosition.value() - pMonitorA->vecPosition + pMonitorB->vecPosition; + w->m_vRealPosition = w->m_vRealPosition.goal() - pMonitorA->vecPosition + pMonitorB->vecPosition; if (w->m_bIsFullscreen) { w->m_vRealPosition = pMonitorB->vecPosition; @@ -2049,7 +2049,7 @@ void CCompositor::swapActiveWorkspaces(CMonitor* pMonitorA, CMonitor* pMonitorB) // additionally, move floating and fs windows manually if (w->m_bIsFloating) - w->m_vRealPosition = w->m_vRealPosition.value() - pMonitorB->vecPosition + pMonitorA->vecPosition; + w->m_vRealPosition = w->m_vRealPosition.goal() - pMonitorB->vecPosition + pMonitorA->vecPosition; if (w->m_bIsFullscreen) { w->m_vRealPosition = pMonitorA->vecPosition; @@ -2226,7 +2226,7 @@ void CCompositor::moveWorkspaceToMonitor(CWorkspace* pWorkspace, CMonitor* pMoni if (w->m_bIsMapped && !w->isHidden()) { if (POLDMON) { if (w->m_bIsFloating) - w->m_vRealPosition = w->m_vRealPosition.value() - POLDMON->vecPosition + pMonitor->vecPosition; + w->m_vRealPosition = w->m_vRealPosition.goal() - POLDMON->vecPosition + pMonitor->vecPosition; if (w->m_bIsFullscreen) { w->m_vRealPosition = pMonitor->vecPosition; |