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