summaryrefslogtreecommitdiff
path: root/clients/simple-touch.c
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2013-01-22 14:53:55 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-01-24 16:42:38 -0500
commit0eab05d2a7cf610e4d049dfd81b0100d4219e305 (patch)
treea93c8046334ba5adcddf34f88c24734e6fe3985e /clients/simple-touch.c
parentcc9acfc75efb2460a40661cfa517e39334eb7d1d (diff)
downloadweston-0eab05d2a7cf610e4d049dfd81b0100d4219e305.tar.gz
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 <ppaalanen@gmail.com>
Diffstat (limited to 'clients/simple-touch.c')
-rw-r--r--clients/simple-touch.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/clients/simple-touch.c b/clients/simple-touch.c
index cbe38770..b8473f10 100644
--- a/clients/simple-touch.c
+++ b/clients/simple-touch.c
@@ -264,8 +264,14 @@ handle_global(void *data, struct wl_registry *registry,
}
}
+static void
+handle_global_remove(void *data, struct wl_registry *registry, uint32_t name)
+{
+}
+
static const struct wl_registry_listener registry_listener = {
- handle_global
+ handle_global,
+ handle_global_remove
};
static struct touch *