Blame SOURCES/0009-Ensure-that-grabbing-is-performed-in-correct-context.patch

429548
From dba4bc4f1d6dfee9fe9433c55b15653d703bed4f Mon Sep 17 00:00:00 2001
429548
From: Andreas Cord-Landwehr <cordlandwehr@kde.org>
429548
Date: Wed, 2 Dec 2020 20:55:52 +0100
429548
Subject: [PATCH 09/36] Ensure that grabbing is performed in correct context
429548
429548
For multi-display rendering on EGL, it is mandatory that the grabbing of
429548
the surface happens in the same EGL context as the surface belongs to.
429548
By adding the grabbing to the rendering stage of the image, this
429548
relation is forced.
429548
429548
Task-number: QTBUG-87597
429548
Change-Id: I50f40df1215aa771d714065e942c5a738ba6269f
429548
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
429548
(cherry picked from commit ab3a1a07f3d1e0d5a9e9d97b6b3b587180e2f4c8)
429548
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
429548
---
429548
 src/compositor/compositor_api/qwaylandquickcompositor.cpp | 2 +-
429548
 1 file changed, 1 insertion(+), 1 deletion(-)
429548
429548
diff --git a/src/compositor/compositor_api/qwaylandquickcompositor.cpp b/src/compositor/compositor_api/qwaylandquickcompositor.cpp
429548
index 49f0860e..db1cf00f 100644
429548
--- a/src/compositor/compositor_api/qwaylandquickcompositor.cpp
429548
+++ b/src/compositor/compositor_api/qwaylandquickcompositor.cpp
429548
@@ -161,7 +161,7 @@ void QWaylandQuickCompositor::grabSurface(QWaylandSurfaceGrabber *grabber, const
429548
     GrabState *state = new GrabState;
429548
     state->grabber = grabber;
429548
     state->buffer = buffer;
429548
-    static_cast<QQuickWindow *>(output->window())->scheduleRenderJob(state, QQuickWindow::NoStage);
429548
+    static_cast<QQuickWindow *>(output->window())->scheduleRenderJob(state, QQuickWindow::AfterRenderingStage);
429548
 #else
429548
     emit grabber->failed(QWaylandSurfaceGrabber::UnknownBufferType);
429548
 #endif
429548
-- 
429548
2.33.1
429548