elm win - only auto choose x11/wl based on envvar if ELM_ENGINE unset

This commit is contained in:
Carsten Haitzler 2014-08-07 16:21:30 +09:00
parent 4864bce07b
commit a32410f0e1
1 changed files with 2 additions and 2 deletions

View File

@ -3080,7 +3080,7 @@ _elm_win_constructor(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_Type t
enginelist[0] = ENGINE_GET();
enginelist[1] = NULL;
}
else if (getenv("DISPLAY"))
else if ((getenv("DISPLAY")) && (!getenv("ELM_ENGINE")))
{
if (_accel_is_gl())
{
@ -3095,7 +3095,7 @@ _elm_win_constructor(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_Type t
enginelist[2] = NULL;
}
}
else if (getenv("WAYLAND_DISPLAY"))
else if ((getenv("WAYLAND_DISPLAY")) && (!getenv("ELM_ENGINE")))
{
if (_accel_is_gl())
{