Disable client side decorations on Vulkan window

Fixes: QTBUG-120950
Change-Id: I22a78691bd09093432e5d11a72e3abbeadf36cf2
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
JiDe Zhang 2024-01-16 17:18:19 +08:00
parent 564ca2f307
commit 2d4b077534

View File

@ -1043,6 +1043,9 @@ bool QWaylandWindow::createDecoration()
{ {
Q_ASSERT_X(QThread::currentThreadId() == QThreadData::get2(thread())->threadId.loadRelaxed(), Q_ASSERT_X(QThread::currentThreadId() == QThreadData::get2(thread())->threadId.loadRelaxed(),
"QWaylandWindow::createDecoration", "not called from main thread"); "QWaylandWindow::createDecoration", "not called from main thread");
// TODO: client side decorations do not work with Vulkan backend.
if (window()->surfaceType() == QSurface::VulkanSurface)
return false;
if (!mDisplay->supportsWindowDecoration()) if (!mDisplay->supportsWindowDecoration())
return false; return false;