summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowTarget.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-02-24 19:01:51 +0000
committerVaxry <vaxry@vaxry.net>2026-02-24 19:01:51 +0000
commitc60b3cb2ed0404d9573b2801b51ba7be1da999d9 (patch)
treee74cc1efaada737d6959150bfdb6d2df2d3a9631 /src/layout/target/WindowTarget.cpp
parentfbf67ef050c8a82ffe6156b255cc89d6020c1084 (diff)
target: fix geometry for x11 floats
Diffstat (limited to 'src/layout/target/WindowTarget.cpp')
-rw-r--r--src/layout/target/WindowTarget.cpp8
1 files changed, 5 insertions, 3 deletions
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<SGeometryRequested, eGeometryFailure> 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;