summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@osg.samsung.com>2015-12-07 23:39:10 +0100
committerStefan Schmidt <stefan@osg.samsung.com>2015-12-16 22:18:08 +0100
commit900fd5446fa7b5b64f463085843bfc9ceac4439f (patch)
tree06b3af372da2dbe39e3e79f2d70797d34f595510 /src/lib/ecore_wayland
parent598f46f25ec94db2821a14baa50cbd4d938fa6ac (diff)
ecore_wayland: create session recovery listener only if env var is set
Same as for the global we make sure here we only add the listener if the, for now, needed env var is set. ref T2922
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c
index e009dfb91e..b74ab6213e 100644
--- a/src/lib/ecore_wayland/ecore_wl_window.c
+++ b/src/lib/ecore_wayland/ecore_wl_window.c
@@ -396,7 +396,7 @@ ecore_wl_window_surface_create(Ecore_Wl_Window *win)
396 EINA_SAFETY_ON_NULL_RETURN_VAL(win, NULL); 396 EINA_SAFETY_ON_NULL_RETURN_VAL(win, NULL);
397 397
398 if (win->surface) return win->surface; 398 if (win->surface) return win->surface;
399 if (_ecore_wl_disp->wl.session_recovery) 399 if (_ecore_wl_disp->wl.session_recovery && getenv("EFL_WAYLAND_SESSION_RECOVERY"))
400 session_recovery_add_listener(_ecore_wl_disp->wl.session_recovery, &_ecore_session_recovery_listener, win); 400 session_recovery_add_listener(_ecore_wl_disp->wl.session_recovery, &_ecore_session_recovery_listener, win);
401 win->surface = wl_compositor_create_surface(_ecore_wl_compositor_get()); 401 win->surface = wl_compositor_create_surface(_ecore_wl_compositor_get());
402 if (!win->surface) return NULL; 402 if (!win->surface) return NULL;