summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_wl2/ecore_wl2.c')
-rw-r--r--src/lib/ecore_wl2/ecore_wl2.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/ecore_wl2/ecore_wl2.c b/src/lib/ecore_wl2/ecore_wl2.c
index f62dacaa42..397f8e3f16 100644
--- a/src/lib/ecore_wl2/ecore_wl2.c
+++ b/src/lib/ecore_wl2/ecore_wl2.c
@@ -92,7 +92,8 @@ ecore_wl2_init(void)
92 _ecore_wl2_event_window_www = ecore_event_type_new(); 92 _ecore_wl2_event_window_www = ecore_event_type_new();
93 _ecore_wl2_event_window_www_drag = ecore_event_type_new(); 93 _ecore_wl2_event_window_www_drag = ecore_event_type_new();
94 } 94 }
95 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY"); 95 if (!no_session_recovery)
96 no_session_recovery = !!getenv("EFL_NO_WAYLAND_SESSION_RECOVERY");
96 97
97 return _ecore_wl2_init_count; 98 return _ecore_wl2_init_count;
98 99
@@ -155,3 +156,9 @@ ecore_wl2_shutdown(void)
155 156
156 return _ecore_wl2_init_count; 157 return _ecore_wl2_init_count;
157} 158}
159
160EAPI void
161ecore_wl2_session_recovery_disable(void)
162{
163 no_session_recovery = EINA_TRUE;
164}