aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-08-25 14:31:09 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2015-08-26 15:58:27 +0200
commit54695313dd081cc82da87b248f382f10b94f8213 (patch)
tree39771b452d565f6e7854ad53f411f608ccfea52e
parentEo base: print an error when an object with a parent is destructed. (diff)
downloadefl-54695313dd081cc82da87b248f382f10b94f8213.tar.gz
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
-rw-r--r--src/lib/ecore_wayland/ecore_wl.c7
1 files changed, 7 insertions, 0 deletions
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"))
{