Blame SOURCES/0013-Client-Send-set_window_geometry-only-once-configured.patch

0cfe39
From 7db4f83c39d2a0c709bc0b9c0de3946d3b4ebfd5 Mon Sep 17 00:00:00 2001
0cfe39
From: David Edmundson <davidedmundson@kde.org>
0cfe39
Date: Mon, 16 Nov 2020 14:57:36 +0000
147f94
Subject: [PATCH 13/36] Client: Send set_window_geometry only once configured
0cfe39
0cfe39
The geometry only makes sense when a buffer exists, our currently send
0cfe39
value is somewhat meaningless, but till now harmless.
0cfe39
0cfe39
A specification clarification implies that it is an error if the
0cfe39
calculated effective window geometry is null, rather than just checking
0cfe39
the sent value. This is the case if set_window_geometry is sent before a
0cfe39
buffer is attached.
0cfe39
0cfe39
On our first configure call we enter resizeFromApplyConfigure which will
0cfe39
hit this path and send the initial state.
0cfe39
0cfe39
Pick-to: 5.15
0cfe39
Pick-to: 6.1
0cfe39
Pick-to: 6.0
0cfe39
Change-Id: Ib57ebe8b64210eae86e79dfdd6b5cb8a986b020b
0cfe39
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
0cfe39
---
0cfe39
 src/client/qwaylandwindow.cpp | 2 +-
0cfe39
 1 file changed, 1 insertion(+), 1 deletion(-)
0cfe39
0cfe39
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
0cfe39
index 9b343702..e875af3a 100644
0cfe39
--- a/src/client/qwaylandwindow.cpp
0cfe39
+++ b/src/client/qwaylandwindow.cpp
0cfe39
@@ -365,7 +365,7 @@ void QWaylandWindow::setGeometry(const QRect &rect)
0cfe39
     if (isExposed() && !mInResizeFromApplyConfigure && exposeGeometry != mLastExposeGeometry)
0cfe39
         sendExposeEvent(exposeGeometry);
0cfe39
 
0cfe39
-    if (mShellSurface)
0cfe39
+    if (mShellSurface && isExposed())
0cfe39
         mShellSurface->setWindowGeometry(windowContentGeometry());
0cfe39
 
0cfe39
     if (isOpaque() && mMask.isEmpty())
0cfe39
-- 
147f94
2.33.1
0cfe39