From 0eab05d2a7cf610e4d049dfd81b0100d4219e305 Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Tue, 22 Jan 2013 14:53:55 +0200 Subject: clients: add global_remove handler stubs All the clients here were missing the global_remove handler. Because window.c did not have it, weston-desktop-shell and weston-keyboard segfaulted on compositor exit, as they received some wl_registry.global_remove events. Add more or less stub global_remove handlers, so that clients do not crash on such events. Toytoolkit and all applications would need a lot more code to properly handle the global object removal. Signed-off-by: Pekka Paalanen --- clients/screenshot.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'clients/screenshot.c') diff --git a/clients/screenshot.c b/clients/screenshot.c index 8681a41c..efacfed6 100644 --- a/clients/screenshot.c +++ b/clients/screenshot.c @@ -128,8 +128,15 @@ handle_global(void *data, struct wl_registry *registry, } } +static void +handle_global_remove(void *data, struct wl_registry *registry, uint32_t name) +{ + /* XXX: unimplemented */ +} + static const struct wl_registry_listener registry_listener = { - handle_global + handle_global, + handle_global_remove }; static struct wl_buffer * -- cgit v1.2.3