From e8594be884434a9a430a4eac282e484414173551 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 4 Apr 2024 14:18:38 +0300 Subject: [PATCH] Use QWaylandWindow::windowContentGeometry() to set the initial preferred size This matches the geometry used in the setWindowGeometry() function. --- src/qwaylandlayersurface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index e90d30a..d7c9538 100644 --- a/src/qwaylandlayersurface.cpp +++ b/src/qwaylandlayersurface.cpp @@ -66,7 +66,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShellIntegration *shell, setKeyboardInteractivity(m_interface->keyboardInteractivity()); }); - setDesiredSize(window->surfaceSize()); + setDesiredSize(window->windowContentGeometry().size()); } QWaylandLayerSurface::~QWaylandLayerSurface()