From c60b3cb2ed0404d9573b2801b51ba7be1da999d9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 24 Feb 2026 19:01:51 +0000 Subject: target: fix geometry for x11 floats --- src/layout/target/WindowTarget.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/layout/target/WindowTarget.cpp') diff --git a/src/layout/target/WindowTarget.cpp b/src/layout/target/WindowTarget.cpp index 0bd905af..f19ba7ea 100644 --- a/src/layout/target/WindowTarget.cpp +++ b/src/layout/target/WindowTarget.cpp @@ -249,9 +249,11 @@ std::expected CWindowTarget::desiredGeomet requested.size = clampSizeForDesired(DESIRED_GEOM.size()); if (m_window->m_isX11) { - Vector2D xy = {DESIRED_GEOM.x, DESIRED_GEOM.y}; - xy = g_pXWaylandManager->xwaylandToWaylandCoords(xy); - requested.pos = xy; + Vector2D xy = {DESIRED_GEOM.x, DESIRED_GEOM.y}; + xy = g_pXWaylandManager->xwaylandToWaylandCoords(xy); + requested.pos = xy; + DESIRED_GEOM.x = xy.x; + DESIRED_GEOM.y = xy.y; } const auto STOREDSIZE = m_window->m_ruleApplicator->persistentSize().valueOrDefault() ? g_pConfigManager->getStoredFloatingSize(m_window.lock()) : std::nullopt; -- cgit v1.2.3