summaryrefslogtreecommitdiff
path: root/src/events/Windows.cpp
diff options
context:
space:
mode:
authorDaniil <118675096+dnvery@users.noreply.github.com>2024-05-14 12:33:20 +0000
committerGitHub <noreply@github.com>2024-05-14 13:33:20 +0100
commit1584679004435d93d5fe2dd794d2aefaa0c9574a (patch)
treecde7ae2f8f2e4dc52218603f8f3569e925018ce7 /src/events/Windows.cpp
parentba696521930059aa489ac6ffabe28553edaf2fa3 (diff)
xwayland: Remove delta for real position with xwayland zero scaling (#6057)
Diffstat (limited to 'src/events/Windows.cpp')
-rw-r--r--src/events/Windows.cpp2
1 files changed, 0 insertions, 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);
}
}