qt5-qtwayland/0023-Do-not-create-decorations-when-the-shellSurface-is-n.patch

40 lines
1.3 KiB
Diff
Raw Normal View History

2022-09-20 15:38:03 +00:00
From 1480fda6ab4a23debd2d1a75d0e8f6c851255441 Mon Sep 17 00:00:00 2001
2022-03-08 11:00:00 +00:00
From: Inho Lee <inho.lee@qt.io>
Date: Mon, 1 Nov 2021 14:23:58 +0100
2022-09-20 15:38:03 +00:00
Subject: [PATCH 23/47] Do not create decorations when the shellSurface is not
2022-03-08 11:00:00 +00:00
ready
A cases reported that client windows try to make decorations
when their shell surfaces are null.
Since the surfaces' requests for decorations should be applied,
those case will be failed to create decorations.
This patch was modified by Paul Tvete's advice.
(paul.tvete@qt.io)
Pick-to: 6.2 5.15
Task-number: QTBUG-97608
Change-Id: I2563dbd73b730f81cc411857af07da99ceb2d063
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
(cherry picked from commit 246f0c0bc01dd059bf8165e81f7b49efa36e4d95)
---
src/client/qwaylandwindow.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
2022-09-20 15:38:03 +00:00
index 2c4ffb56..13976320 100644
2022-03-08 11:00:00 +00:00
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
2022-09-20 15:38:03 +00:00
@@ -828,7 +828,7 @@ bool QWaylandWindow::createDecoration()
2022-03-08 11:00:00 +00:00
decoration = false;
if (mSubSurfaceWindow)
decoration = false;
- if (mShellSurface && !mShellSurface->wantsDecorations())
+ if (!mShellSurface || !mShellSurface->wantsDecorations())
decoration = false;
bool hadDecoration = mWindowDecoration;
--
2022-09-20 15:38:03 +00:00
2.37.3
2022-03-08 11:00:00 +00:00