Blame SOURCES/0001-xwayland-eglstream-Keep-pending-stream-if-the-pixmap.patch

b6a310
From 8c74023712a9e0d79ec669738b726e7dc821de68 Mon Sep 17 00:00:00 2001
b6a310
From: Olivier Fourdan <ofourdan@redhat.com>
b6a310
Date: Wed, 23 Jun 2021 11:35:17 +0200
b6a310
Subject: [PATCH xserver 1/2] xwayland/eglstream: Keep pending stream if the
b6a310
 pixmap didn't change
b6a310
MIME-Version: 1.0
b6a310
Content-Type: text/plain; charset=UTF-8
b6a310
Content-Transfer-Encoding: 8bit
b6a310
b6a310
If the pixmap does not actually change in set_window_pixmap(), there is
b6a310
no need to invalidate the pending stream, if there's one.
b6a310
b6a310
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
b6a310
Suggested-by: Michel Dänzer <mdaenzer@redhat.com>
b6a310
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
b6a310
(cherry picked from commit 2be9f795bc15012dc912f595003e01bb6aa66f54)
b6a310
---
b6a310
 hw/xwayland/xwayland-glamor-eglstream.c | 2 +-
b6a310
 1 file changed, 1 insertion(+), 1 deletion(-)
b6a310
b6a310
diff --git a/hw/xwayland/xwayland-glamor-eglstream.c b/hw/xwayland/xwayland-glamor-eglstream.c
b6a310
index 0affc954c..2eae9494c 100644
b6a310
--- a/hw/xwayland/xwayland-glamor-eglstream.c
b6a310
+++ b/hw/xwayland/xwayland-glamor-eglstream.c
b6a310
@@ -377,7 +377,7 @@ xwl_eglstream_set_window_pixmap(WindowPtr window, PixmapPtr pixmap)
b6a310
      * attached, so the stream would be useless.
b6a310
      */
b6a310
     old_pixmap = (*screen->GetWindowPixmap) (window);
b6a310
-    if (old_pixmap)
b6a310
+    if (old_pixmap && old_pixmap != pixmap)
b6a310
         xwl_eglstream_maybe_set_pending_stream_invalid(old_pixmap);
b6a310
 
b6a310
     xwl_screen->screen->SetWindowPixmap = xwl_eglstream->SetWindowPixmap;
b6a310
-- 
b6a310
2.31.1
b6a310