feature: add automatic compositor engine detection

this takes care of the previously-required E_WL_FORCE autodetection. E_WL_FORCE behavior unchanged
This commit is contained in:
Mike Blumenkrantz 2014-05-11 13:06:11 -04:00
parent 16ad939ecb
commit 6d3c9d3a19
1 changed files with 21 additions and 1 deletions

View File

@ -1131,7 +1131,27 @@ e_comp_init(void)
}
#ifndef HAVE_WAYLAND_ONLY
e_comp_x_init();
if (!e_comp_x_init())
{
const char **test, *eng[] =
{
#ifdef HAVE_WL_DRM
"wl_drm",
#endif
/* probably add other engines here; fb should be last? */
#ifdef HAVE_WL_FM
"wl_fb",
#endif
NULL
};
for (test = eng; *test; test++)
{
if (e_module_enable(e_module_new(*test)))
goto out;
}
return EINA_FALSE;
}
#endif
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
e_comp_wl_init();