From d77de13ca6028d0011f5a2a285a2a6f751b5d8da Mon Sep 17 00:00:00 2001 From: Haihua Hu Date: Tue, 9 Jun 2020 10:53:17 +0800 Subject: [PATCH] waylandsink: add wl_registry.global_remove listener when hotplug display, wayland client will call this listener to notify client do clean up. Temporarily set a dummy function here to avoid app abort Part-of: --- ext/wayland/wldisplay.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ext/wayland/wldisplay.c b/ext/wayland/wldisplay.c index 9400095..f7115d5 100644 --- a/ext/wayland/wldisplay.c +++ b/ext/wayland/wldisplay.c @@ -234,8 +234,16 @@ registry_handle_global (void *data, struct wl_registry *registry, } } +static void +registry_handle_global_remove (void *data, struct wl_registry *registry, + uint32_t name) +{ + /* temporarily do nothing */ +} + static const struct wl_registry_listener registry_listener = { - registry_handle_global + registry_handle_global, + registry_handle_global_remove }; static gpointer -- 2.7.4