From bbb78810a1d8f6ce613202c5682b6a5b56114809 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 a977546..943b89c 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -121,6 +121,7 @@ void QWaylandLayerSurface::applyConfigure() void QWaylandLayerSurface::setAnchor(uint anchor) { set_anchor(anchor); + setWindowGeometry(window()->windowContentGeometry()); } void QWaylandLayerSurface::setExclusiveZone(int32_t zone)