summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wl2/ecore_wl2.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-10-25 14:07:09 -0500
committerDerek Foreman <derekf@osg.samsung.com>2016-10-25 14:07:09 -0500
commit09378052e78674a5073785e60c72d0e036176796 (patch)
treee51668b7972308d178b61a93ae227c9e5bac1bd1 /src/lib/ecore_wl2/ecore_wl2.c
parentc173be4db73326a5090d69b7442f5ebfc38f2ce4 (diff)
ecore_wl2: Add API to disable session recovery
Enlightenment needs a way to avoid using session recovery functionality when connecting to itself for internal windows.
Diffstat (limited to '')
-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}