From 54695313dd081cc82da87b248f382f10b94f8213 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Tue, 25 Aug 2015 14:31:09 +0200 Subject: [PATCH] ecore_wayland: bind and destroy session_recovery interface correctly. This was missing from the initial session recovery support patches. Bind the interface so we can actually work with it on the client side and destroy it at the end. @fix --- src/lib/ecore_wayland/ecore_wl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/ecore_wayland/ecore_wl.c b/src/lib/ecore_wayland/ecore_wl.c index fff8dd6de3..13758c6c3f 100644 --- a/src/lib/ecore_wayland/ecore_wl.c +++ b/src/lib/ecore_wayland/ecore_wl.c @@ -506,6 +506,8 @@ _ecore_wl_shutdown(Eina_Bool close) _ecore_wl_xkb_shutdown(_ecore_wl_disp); + if (_ecore_wl_disp->wl.session_recovery) + session_recovery_destroy(_ecore_wl_disp->wl.session_recovery); #ifdef USE_IVI_SHELL if (_ecore_wl_disp->wl.ivi_application) ivi_application_destroy(_ecore_wl_disp->wl.ivi_application); @@ -654,6 +656,11 @@ _ecore_wl_cb_handle_global(void *data, struct wl_registry *registry, unsigned in _ecore_wl_output_add(ewd, id); else if (!strcmp(interface, "wl_seat")) _ecore_wl_input_add(ewd, id); + else if (!strcmp(interface, "session_recovery")) + { + ewd->wl.session_recovery = + wl_registry_bind(registry, id, &session_recovery_interface, 1); + } #ifdef USE_IVI_SHELL else if (!strcmp(interface, "ivi_application")) {