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

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