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

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