Use QWaylandWindow::windowContentGeometry() to set the initial preferred size

This matches the geometry used in the setWindowGeometry() function.

(cherry picked from commit e8594be884)
This commit is contained in:
Vlad Zahorodnii 2024-04-04 14:18:38 +03:00
parent 32afbcf68a
commit 797c8b26ca

View File

@ -66,7 +66,7 @@ QWaylandLayerSurface::QWaylandLayerSurface(QWaylandLayerShellIntegration *shell,
setKeyboardInteractivity(m_interface->keyboardInteractivity());
});
setDesiredSize(window->surfaceSize());
setDesiredSize(window->windowContentGeometry().size());
}
QWaylandLayerSurface::~QWaylandLayerSurface()