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.
This commit is contained in:
David Redondo 2023-12-21 10:08:48 +01:00
parent 80c9cc60ea
commit f931573f34

View File

@ -119,6 +119,7 @@ void QWaylandLayerSurface::applyConfigure()
void QWaylandLayerSurface::setAnchor(uint anchor)
{
set_anchor(anchor);
setWindowGeometry(window()->windowContentGeometry());
}
void QWaylandLayerSurface::setExclusiveZone(int32_t zone)