xserver/hw
Olivier Fourdan 96febe8ba4 xwayland/eglstream: Do not always increment pixmap refcnt on commit
Currently, the EGLstream backend would increment the pixmap refcount for
each commit, and decrease that refcount on the wl_buffer release
callback.

But that's relying on the compositor sending us a release callback for
each commit, otherwise the pixmap refcount will keep increasing and the
pixmap will be leaked.

So instead, increment the refcount on the pixmap only when we have not
received a release notification for the wl_buffer, to avoid increasing
the pixmap refcount more than once without a corresponding release
event.

This way, if the pixmap is still in use when released on the X11 side,
the EGL stream will be kept until the compositor releases it.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Suggested-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
(cherry picked from commit d85bfa6ab7)
2021-06-21 11:16:58 +02:00
..
vfb Don't install Xvfb 2021-02-03 18:22:18 +01:00
xwayland xwayland/eglstream: Do not always increment pixmap refcnt on commit 2021-06-21 11:16:58 +02:00
meson.build Drop Xephyr / kdrive DDX 2021-02-03 18:13:15 +01:00