OSDN Git Service

wayland: Implement registry remove handler
authorPhilipp Kerling <pkerling@casix.org>
Wed, 16 Aug 2017 10:37:27 +0000 (12:37 +0200)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 17 Aug 2017 03:06:29 +0000 (11:06 +0800)
commit62affbb44b771931a8895fc7428df23afb888750
tree35519f4e31fe1470d8760374b0c0dde8a5720f60
parent324a725e5068a538e2446b0b73cccb3c119f3d8b
wayland: Implement registry remove handler

Wayland event handlers are never optional. libwayland-client will abort
the program if events for unbound handlers are to be dispatched.
Although the event queue is only dispatched a few times during
initialization for getting the wl_drm global and authenticating the DRM
device, in rare circumstances it can happen that another global such as
a wl_output - or even wl_drm itself - is removed during that time, which
would crash the program. Implement the handler to fix this.

Fixes: #99

Signed-off-by: Philipp Kerling <pkerling@casix.org>
va/wayland/va_wayland_drm.c