From f8fa9eae683d6027f2f1747f9da9f1b6246ba4c7 Mon Sep 17 00:00:00 2001 From: Daniil <118675096+dnvery@users.noreply.github.com> Date: Mon, 13 May 2024 12:44:43 +0000 Subject: [PATCH] Removed delta for real position with xwayland zero scaling --- src/events/Windows.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 4ccf8e41..c5d144d0 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -1144,9 +1144,8 @@ 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); + PWINDOW->m_vRealPosition.setValueAndWarp(PWINDOW->m_vRealPosition.goal()); } } -- 2.44.0