diff --git a/frame/layershell/qwaylandlayershellsurface.cpp b/frame/layershell/qwaylandlayershellsurface.cpp index 586160f4b..143ed215e 100644 --- a/frame/layershell/qwaylandlayershellsurface.cpp +++ b/frame/layershell/qwaylandlayershellsurface.cpp @@ -124,11 +124,11 @@ bool QWaylandLayerShellSurface::anchorsSizeConflict() const void QWaylandLayerShellSurface::trySetAnchorsAndSize() { + set_anchor(m_dlayerShellWindow->anchors()); if (!anchorsSizeConflict()) { - set_anchor(m_dlayerShellWindow->anchors()); set_size(m_requestSize.width(), m_requestSize.height()); - scheduleCommit(); } + scheduleCommit(); } void QWaylandLayerShellSurface::applyLayer()