diff options
author | Kristian Høgsberg <[email protected]> | 2013-06-18 16:53:46 -0400 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2013-06-18 17:45:19 -0400 |
commit | 712269d6744a8849d1d0cf01fa0132d969b79ed4 (patch) | |
tree | afe38b84110e6d786ec92f1b1ac7ff1670412e4c /src/egl/drivers | |
parent | adeda5afd428e2e4a2c0ef0b6367956d94c4d054 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/egl/drivers')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 |