xserver-multidpi/hw
Olivier Fourdan f95d81e88b xwayland: Hold window buffer until released
The window buffer mechanism would free the pixmap and its corresponding
Wayland buffer as soon as window buffers are disposed.

Typically when the X11 window is unrealized, the current window buffer
is still used by the Wayland compositor and yet Xwayland will destroy
the buffer.

As a matter of fact, Xwayland should not destroy the Wayland buffer
before the wl_buffer.release event is received.

Add a reference counter to the window buffer similar to the to pixmap
reference counter to keep the buffer around until the release callback
is received.

Increase that reference counter on the buffer which will be attached to
the surface, and drop that reference when receiving the release callback
notification.

v2: Use a specific reference counter on the buffer rather than relying
    on the pixmap refcnt (Michel Dänzer <mdaenzer@redhat.com>)

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Acked-by: Martin Peres <martin.peres@mupuf.org>
2020-12-10 13:49:42 +01:00
..
dmx dmx: example code should set a good example 2020-11-17 18:43:39 -08:00
kdrive Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
vfb Revert https://gitlab.freedesktop.org/xorg/xserver/merge_requests/235 2019-10-14 12:48:24 +02:00
xfree86 Remove check for useSIGIO option 2020-12-08 11:23:31 -05:00
xnest Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xquartz Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xwayland xwayland: Hold window buffer until released 2020-12-10 13:49:42 +01:00
xwin hw/xwin: Fix building with -fno-common 2020-11-24 14:55:28 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00
meson.build meson: Move Xvfb build under an option. 2017-09-20 13:19:21 -04:00