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

This matches the geometry used in the setWindowGeometry() function.
This commit is contained in:
Vlad Zahorodnii 2024-04-04 14:18:38 +03:00
parent 0a31923938
commit e8594be884

View File

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