Blame SOURCES/0032-Do-not-create-decorations-when-the-shellSurface-is-n.patch

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