diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-06-23 11:35:17 +0200 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2021-06-29 15:59:41 +0200 |
commit | 2be9f795bc15012dc912f595003e01bb6aa66f54 (patch) | |
tree | 8482e556f16a10ccffc1963b6869506f56891e82 /hw | |
parent | 2531ee02450e3be3549daa09407557c3addeba02 (diff) |
xwayland/eglstream: Keep pending stream if the pixmap didn't change
If the pixmap does not actually change in set_window_pixmap(), there is
no need to invalidate the pending stream, if there's one.
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Suggested-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/xwayland/xwayland-glamor-eglstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xwayland/xwayland-glamor-eglstream.c b/hw/xwayland/xwayland-glamor-eglstream.c index 032f8a600..e06f30214 100644 --- a/hw/xwayland/xwayland-glamor-eglstream.c +++ b/hw/xwayland/xwayland-glamor-eglstream.c @@ -382,7 +382,7 @@ xwl_eglstream_set_window_pixmap(WindowPtr window, PixmapPtr pixmap) * attached, so the stream would be useless. */ old_pixmap = (*screen->GetWindowPixmap) (window); - if (old_pixmap) + if (old_pixmap && old_pixmap != pixmap) xwl_eglstream_maybe_set_pending_stream_invalid(old_pixmap); xwl_screen->screen->SetWindowPixmap = xwl_eglstream->SetWindowPixmap; |