Blame SOURCES/0041-Client-Avoid-processing-of-events-when-showing-windo.patch

429548
From 867540b9d913760a847ff67c8694d817c821f2c2 Mon Sep 17 00:00:00 2001
429548
From: David Edmundson <davidedmundson@kde.org>
429548
Date: Sun, 14 Nov 2021 13:54:19 +0000
429548
Subject: [PATCH 41/41] Client: Avoid processing of events when showing windows
429548
429548
The only time we want to dispatch events from the wayland socket is when
429548
the application is waiting for external events. Doing so at any other
429548
time will cause unpredictable behavior in client code.
429548
429548
This caused a crash downstream where we had outputs get altered whilst
429548
itterating through outputs, which shouldn't happen.
429548
429548
There is no benefit to flushing here, it won't make anything appear
429548
faster as we haven't attached the buffer yet.
429548
429548
Change-Id: Ie13eae4012dab96a93d8810f468d1343402b8c28
429548
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
429548
Reviewed-by: Aleix Pol Gonzalez <aleixpol@kde.org>
429548
(cherry picked from commit 46ed85a80b28d519cf5887bbdce55d1bf57886c3)
429548
---
429548
 src/client/qwaylandwindow.cpp | 1 -
429548
 1 file changed, 1 deletion(-)
429548
429548
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
429548
index ba881cb3..1597f67e 100644
429548
--- a/src/client/qwaylandwindow.cpp
429548
+++ b/src/client/qwaylandwindow.cpp
429548
@@ -436,7 +436,6 @@ void QWaylandWindow::setVisible(bool visible)
429548
         if (window()->type() == Qt::Popup || window()->type() == Qt::ToolTip)
429548
             activePopups << this;
429548
         initWindow();
429548
-        mDisplay->flushRequests();
429548
 
429548
         setGeometry(windowGeometry());
429548
         // Don't flush the events here, or else the newly visible window may start drawing, but since
429548
-- 
429548
2.34.1
429548