summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elementary/elm_config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_config.c b/src/lib/elementary/elm_config.c
index 756d54ddf1..269c5d3cf3 100644
--- a/src/lib/elementary/elm_config.c
+++ b/src/lib/elementary/elm_config.c
@@ -3927,7 +3927,7 @@ _elm_config_sub_init(void)
3927 3927
3928 if (ev) /* If ELM_DISPLAY is specified */ 3928 if (ev) /* If ELM_DISPLAY is specified */
3929 { 3929 {
3930 if (!strcmp(ev, "wl")) /* and it is X11 */ 3930 if (!strcmp(ev, "wl")) /* and it is WL */
3931 { 3931 {
3932 /* always try to connect to wl when it is enforced */ 3932 /* always try to connect to wl when it is enforced */
3933 init_wl = EINA_TRUE; 3933 init_wl = EINA_TRUE;
@@ -3937,7 +3937,8 @@ _elm_config_sub_init(void)
3937 } 3937 }
3938 else /* ELM_DISPLAY not specified */ 3938 else /* ELM_DISPLAY not specified */
3939 { 3939 {
3940 if (have_wl_display) /* If there is a $WAYLAND_DISPLAY */ 3940 /* If there is a $WAYLAND_DISPLAY */
3941 if ((have_wl_display) && (!getenv("DISPLAY")))
3941 init_wl = EINA_TRUE; 3942 init_wl = EINA_TRUE;
3942 else /* No $WAYLAND_DISPLAY */ 3943 else /* No $WAYLAND_DISPLAY */
3943 init_wl = EINA_FALSE; 3944 init_wl = EINA_FALSE;