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:
parent
16ad939ecb
commit
6d3c9d3a19
|
@ -1131,7 +1131,27 @@ e_comp_init(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#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
|
#endif
|
||||||
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
|
||||||
e_comp_wl_init();
|
e_comp_wl_init();
|
||||||
|
|
Loading…
Reference in New Issue