From 91e28bbe9df85e2e94fbcc0137106362aea14ab5 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 15 Aug 2023 19:15:37 +0200 Subject: 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 --- src/Window.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Window.cpp') 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); -- cgit v1.2.3