From 797c8b26caeec7b697ca4e40b381096a552673d4 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. (cherry picked from commit e8594be884434a9a430a4eac282e484414173551) --- src/qwaylandlayersurface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qwaylandlayersurface.cpp b/src/qwaylandlayersurface.cpp index 0649ef5..081d5ad 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()