diff options
| author | Daniil <118675096+dnvery@users.noreply.github.com> | 2024-05-14 12:33:20 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-14 13:33:20 +0100 |
| commit | 1584679004435d93d5fe2dd794d2aefaa0c9574a (patch) | |
| tree | cde7ae2f8f2e4dc52218603f8f3569e925018ce7 /src/events/Windows.cpp | |
| parent | ba696521930059aa489ac6ffabe28553edaf2fa3 (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.cpp | 2 |
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); } } |
