ecore_wayland: only bind session recovery interface when env var is set

To avoid trouble for other wayland testing we hide the session recovery work
behind EFL_WAYLAND_SESSION_RECOVERY. Without this env var being set we do not
bind the global.

ref T2922
This commit is contained in:
Stefan Schmidt 2015-12-07 23:31:13 +01:00
parent 56cc11c3b1
commit 598f46f25e
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ _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"))
else if (!strcmp(interface, "session_recovery") && getenv("EFL_WAYLAND_SESSION_RECOVERY"))
{
ewd->wl.session_recovery =
wl_registry_bind(registry, id, &session_recovery_interface, 1);