diff options
author | David Edmundson <[email protected]> | 2025-06-18 08:49:53 +0100 |
---|---|---|
committer | David Edmundson <[email protected]> | 2025-06-18 13:03:02 +0000 |
commit | 513a38a50ad260b957eb7ab1b92f8e7c40fef9e7 (patch) | |
tree | 26a418808975f9004cfd3159c089368d376f1be0 | |
parent | 655c74a54804965d59130af789efd1b83f76d71b (diff) |
wayland: Initialize surface format on construction
QPlatformWindow::surfaceFormat should return the requestedFormat until
the surface is created.
Fixes: QTBUG-137739
Pick-to: 6.10
Change-Id: I483cc47d96fc0edb110c1ad80d20eb4d96bc1202
Reviewed-by: David Edmundson <[email protected]>
-rw-r--r-- | src/plugins/platforms/wayland/qwaylandwindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/wayland/qwaylandwindow.cpp b/src/plugins/platforms/wayland/qwaylandwindow.cpp index aaf2cc21b4b..73d90b6c321 100644 --- a/src/plugins/platforms/wayland/qwaylandwindow.cpp +++ b/src/plugins/platforms/wayland/qwaylandwindow.cpp @@ -53,6 +53,7 @@ QWaylandWindow::QWaylandWindow(QWindow *window, QWaylandDisplay *display) , mDisplay(display) , mSurfaceLock(QReadWriteLock::Recursive) , mShellIntegration(display->shellIntegration()) + , mSurfaceFormat(window->requestedFormat()) { { bool ok; |