From ea06f1acab6d9ed5a2fb451cfeac0af0cf8e0191 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Fri, 16 Feb 2024 14:17:08 +0000 Subject: [PATCH] smaller fix --- src/qwaylandlayersurface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index 44cc382..c938a17 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -161,6 +161,11 @@ void QWaylandLayerSurface::setLayer(uint32_t layer) void QWaylandLayerSurface::setWindowGeometry(const QRect &geometry) { + // if we are setting it to the last size we were configured at, we don't need to do anything + if (geometry.size() == m_pendingSize) { + return; + } + const bool horizontallyConstrained = m_interface->anchors().testFlags({Window::AnchorLeft, Window::AnchorRight}); const bool verticallyConstrained = m_interface->anchors().testFlags({Window::AnchorTop, Window::AnchorBottom});