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

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