summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtwayland/0001-Avoid-attaching-NULL-buffer-while-hiding-EGL-windows.patch
blob: 67c4bba4f5d22cc3500cf012bbd7bca5b66f9b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From f7947e9a0e6ae99e8fd0ab3c9176885f724ac87d Mon Sep 17 00:00:00 2001
From: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Date: Tue, 19 Jul 2016 12:14:26 -0500
Subject: [PATCH] Avoid attaching NULL buffer while hiding EGL windows

Incremental fix for QTBUG-46921. Destroying the callback for NULL surface is not
working all the time. If the window is hidden by destroying the EGL surface
and hence setting the NULL buffer is no longer required.

Task-number:QTBUG-47902
Signed-off-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
---
 src/client/qwaylandwindow.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 2dd58e8..24b5653 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -312,8 +312,6 @@ void QWaylandWindow::setVisible(bool visible)
         QPointer<QWaylandWindow> deleteGuard(this);
         QWindowSystemInterface::flushWindowSystemEvents();
         if (!deleteGuard.isNull()) {
-            attach(static_cast<QWaylandBuffer *>(0), 0, 0);
-            commit();
             if (mBackingStore) {
                 mBackingStore->hidden();
             }
-- 
2.7.4