From 1584679004435d93d5fe2dd794d2aefaa0c9574a Mon Sep 17 00:00:00 2001 From: Daniil <118675096+dnvery@users.noreply.github.com> Date: Tue, 14 May 2024 12:33:20 +0000 Subject: [PATCH] xwayland: Remove delta for real position with xwayland zero scaling (#6057) --- src/events/Windows.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 4ccf8e41..7e0e3569 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -1144,9 +1144,7 @@ void Events::listener_unmanagedSetGeometry(void* owner, void* data) { if (*PXWLFORCESCALEZERO) { if (const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); PMONITOR) { - const Vector2D DELTA = PWINDOW->m_vRealSize.goal() - PWINDOW->m_vRealSize.goal() / PMONITOR->scale; PWINDOW->m_vRealSize.setValueAndWarp(PWINDOW->m_vRealSize.goal() / PMONITOR->scale); - PWINDOW->m_vRealPosition.setValueAndWarp(PWINDOW->m_vRealPosition.goal() + DELTA / 2.0); } }