summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorvaxerski <vaxry@vaxry.net>2023-08-15 19:15:37 +0200
committervaxerski <vaxry@vaxry.net>2023-08-15 19:15:37 +0200
commit91e28bbe9df85e2e94fbcc0137106362aea14ab5 (patch)
treec2199ee9918e8905a52e91d5d3ea8d5d59443b81 /src/Window.cpp
parent2b4537606f604f29b2d42d7be369182831269958 (diff)
xwayland: use a completely separate coordinate system
Use a completely separate coordinate system for XWayland. This fixes all issues with force_zero_scaling overlaps. Fixes #2916
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 7350f74c..73095fe0 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -356,6 +356,9 @@ void CWindow::moveToWorkspace(int workspaceID) {
m_pSwallowed->moveToWorkspace(workspaceID);
m_pSwallowed->m_iMonitorID = m_iMonitorID;
}
+
+ // update xwayland coords
+ g_pXWaylandManager->setWindowSize(this, m_vRealSize.vec());
}
CWindow* CWindow::X11TransientFor() {
@@ -687,7 +690,7 @@ void CWindow::setGroupCurrent(CWindow* pWindow) {
g_pCompositor->setWindowFullscreen(PCURRENT, false, WORKSPACE->m_efFullscreenMode);
PCURRENT->setHidden(true);
- pWindow->setHidden(false); // can remove m_pLastWindow
+ pWindow->setHidden(false); // can remove m_pLastWindow
g_pLayoutManager->getCurrentLayout()->replaceWindowDataWith(PCURRENT, pWindow);