Small patch to fix an issue that Derek brought up ... that is
basically, if you try:
WAYLAND_DEBUG=1 WAYLAND_DISPLAY=wayland-0 terminology while inside an
X11 environment, then elm_config would try to initialize ecore_wl2
even when running under X11.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
if (ev) /* If ELM_DISPLAY is specified */
{
- if (!strcmp(ev, "wl")) /* and it is X11 */
+ if (!strcmp(ev, "wl")) /* and it is WL */
{
/* always try to connect to wl when it is enforced */
init_wl = EINA_TRUE;
}
else /* ELM_DISPLAY not specified */
{
- if (have_wl_display) /* If there is a $WAYLAND_DISPLAY */
+ /* If there is a $WAYLAND_DISPLAY */
+ if ((have_wl_display) && (!getenv("DISPLAY")))
init_wl = EINA_TRUE;
else /* No $WAYLAND_DISPLAY */
init_wl = EINA_FALSE;