mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-06-04 01:28:35 -04:00
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:
parent
a1e7134247
commit
971c97cfd3
@ -121,6 +121,7 @@ void QWaylandLayerSurface::applyConfigure()
|
|||||||
void QWaylandLayerSurface::setAnchor(uint anchor)
|
void QWaylandLayerSurface::setAnchor(uint anchor)
|
||||||
{
|
{
|
||||||
set_anchor(anchor);
|
set_anchor(anchor);
|
||||||
|
setWindowGeometry(window()->windowContentGeometry());
|
||||||
}
|
}
|
||||||
|
|
||||||
void QWaylandLayerSurface::setExclusiveZone(int32_t zone)
|
void QWaylandLayerSurface::setExclusiveZone(int32_t zone)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user