summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-11 18:43:15 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-11 18:43:13 -0400
commitdc250e6101c7794d3923eb33f978580e0363142e (patch)
tree3b8e31f9a5e9059635a01994c4e5e40479d4e6bf /src/lib
parentf00a49835d69aa5eb014e8b33fbc2723866d09ab (diff)
efl-wl: add EFL_WL_DEBUG env variable for enabling wayland debug
@feature
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/efl_wl/efl_wl.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/lib/efl_wl/efl_wl.c b/src/lib/efl_wl/efl_wl.c
index 069e4ed0c2..5c4fb32c04 100644
--- a/src/lib/efl_wl/efl_wl.c
+++ b/src/lib/efl_wl/efl_wl.c
@@ -4969,7 +4969,7 @@ static void
4969comp_smart_add(Evas_Object *obj) 4969comp_smart_add(Evas_Object *obj)
4970{ 4970{
4971 Comp *c; 4971 Comp *c;
4972 char *env; 4972 char *env, *dbg = NULL;
4973 4973
4974 c = calloc(1, sizeof(Comp)); 4974 c = calloc(1, sizeof(Comp));
4975 c->wayland_time_base = ecore_loop_time_get(); 4975 c->wayland_time_base = ecore_loop_time_get();
@@ -4977,7 +4977,19 @@ comp_smart_add(Evas_Object *obj)
4977 evas_object_smart_data_set(obj, c); 4977 evas_object_smart_data_set(obj, c);
4978 env = getenv("WAYLAND_DISPLAY"); 4978 env = getenv("WAYLAND_DISPLAY");
4979 if (env) env = strdup(env); 4979 if (env) env = strdup(env);
4980
4981 if (getenv("EFL_WL_DEBUG"))
4982 {
4983 dbg = eina_strdup(getenv("WAYLAND_DEBUG"));
4984 setenv("WAYLAND_DEBUG", "1", 1);
4985 }
4980 c->disp = ecore_wl2_display_create(NULL); 4986 c->disp = ecore_wl2_display_create(NULL);
4987 if (getenv("EFL_WL_DEBUG"))
4988 {
4989 if (dbg) setenv("WAYLAND_DEBUG", dbg, 1);
4990 else unsetenv("WAYLAND_DEBUG");
4991 free(dbg);
4992 }
4981 c->env = eina_strdup(getenv("WAYLAND_DISPLAY")); 4993 c->env = eina_strdup(getenv("WAYLAND_DISPLAY"));
4982 if (env) setenv("WAYLAND_DISPLAY", env, 1); 4994 if (env) setenv("WAYLAND_DISPLAY", env, 1);
4983 else unsetenv("WAYLAND_DISPLAY"); 4995 else unsetenv("WAYLAND_DISPLAY");