aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-01-28 20:13:44 +0000
committerVaxry <[email protected]>2024-01-28 20:13:44 +0000
commitb7840c646113af8c14e6e984a6cd29cc812af13f (patch)
treedb2a23492fce253a551b7615e2b74372c6174801
parent5a90911b70ab19ea99efe2fa9ab4d8e2153df4eb (diff)
downloadHyprland-b7840c646113af8c14e6e984a6cd29cc812af13f.tar.gz
Hyprland-b7840c646113af8c14e6e984a6cd29cc812af13f.zip
xwayland: remove delta from pos sets in configureX11
ref #4536
-rw-r--r--src/events/Windows.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp
index 976cc792..48b6b3ac 100644
--- a/src/events/Windows.cpp
+++ b/src/events/Windows.cpp
@@ -1052,11 +1052,8 @@ void Events::listener_configureX11(void* owner, void* data) {
static auto* const PXWLFORCESCALEZERO = &g_pConfigManager->getConfigValuePtr("xwayland:force_zero_scaling")->intValue;
if (*PXWLFORCESCALEZERO) {
- if (const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); PMONITOR) {
- const Vector2D DELTA = PWINDOW->m_vRealSize.goalv() - PWINDOW->m_vRealSize.goalv() / PMONITOR->scale;
+ if (const auto PMONITOR = g_pCompositor->getMonitorFromID(PWINDOW->m_iMonitorID); PMONITOR)
PWINDOW->m_vRealSize.setValueAndWarp(PWINDOW->m_vRealSize.goalv() / PMONITOR->scale);
- PWINDOW->m_vRealPosition.setValueAndWarp(PWINDOW->m_vRealPosition.goalv() + DELTA / 2.0);
- }
}
PWINDOW->m_vPosition = PWINDOW->m_vRealPosition.vec();