From: Kristian Høgsberg Date: Tue, 18 Jun 2013 20:53:46 +0000 (-0400) Subject: wayland: Handle global_remove event as well X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=712269d6744a8849d1d0cf01fa0132d969b79ed4;p=mesa.git wayland: Handle global_remove event as well We need to set up a handler for the global_remove event that gets sent out when a global gets removed. Without the handler we end up calling a NULL pointer. https://bugs.freedesktop.org/show_bug.cgi?id=65910 NOTE: This is a candidate for the stable branches. Signed-off-by: Kristian Høgsberg --- diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index b5523bed8f2..1d417bb27f2 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -715,8 +715,15 @@ registry_handle_global(void *data, struct wl_registry *registry, uint32_t name, } } +static void +registry_handle_global_remove(void *data, struct wl_registry *registry, + uint32_t name) +{ +} + static const struct wl_registry_listener registry_listener = { - registry_handle_global + registry_handle_global, + registry_handle_global_remove }; EGLBoolean