summaryrefslogtreecommitdiff
path: root/src/layout/target/WindowTarget.cpp
diff options
context:
space:
mode:
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;