wayland: Handle global_remove event as well
authorKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Jun 2013 20:53:46 +0000 (16:53 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Jun 2013 21:45:19 +0000 (17:45 -0400)
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 <krh@bitplanet.net>
src/egl/drivers/dri2/platform_wayland.c

index b5523bed8f289e1c000fd48d1719cd7a8a13b21c..1d417bb27f23ed724103be45b1b2383c95bea56f 100644 (file)
@@ -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