Force ELM_WAYLAND_EGL if engine set called when DISPLAY not set
authorMikko Ylinen <mikko.ylinen@intel.com>
Thu, 10 Jan 2013 12:30:37 +0000 (14:30 +0200)
committerEduardo Lima (Etrunko) <eduardo.lima@intel.com>
Tue, 13 Aug 2013 20:49:39 +0000 (17:49 -0300)
commitacdc579a8dde37f6bb639f31358dc451f15b415e
treea0a3c58915c6aec5c78393e67fd68917f603feda
parenta3e001556665cbec74d0ebb1e29c45a3746a9568
Force ELM_WAYLAND_EGL if engine set called when DISPLAY not set

Some applications are directly calling elm_config_preferred_engine_set.
To avoid patching all apps to work with Wayland, always set
ELM_WAYLAND_EGL if elm_config_preferred_engine_set is called with
EGL_OPENGL_X11 or EGL_SOFTWARE_X11 when DISPLAY is not set.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
src/lib/elm_config.c