From f931573f3456f5812a2e114458669a6a34ddc7cf Mon Sep 17 00:00:00 2001 From: David Redondo Date: Thu, 21 Dec 2023 10:08:48 +0100 Subject: [PATCH] Set window geometry again when changing anchors Changing anchors can make a previously send size illegal if a a constrained window becomes unconstrained as 0 size is only allowed in a dimension that has both anchors set. --- src/qwaylandlayersurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index 53fe9d0..89f47ef 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -119,6 +119,7 @@ void QWaylandLayerSurface::applyConfigure() void QWaylandLayerSurface::setAnchor(uint anchor) { set_anchor(anchor); + setWindowGeometry(window()->windowContentGeometry()); } void QWaylandLayerSurface::setExclusiveZone(int32_t zone)