evas: Don't load wayland engines when running on X
evas_render_method_lookup calls evas_module_find_type that
in turn actually goes and loads the module. All we wanted to
know was whether the render_method corresponded to one of the
wayland engines.
See 453770137f
This commit is contained in:
parent
bdb4977dda
commit
4a67074a67
|
@ -999,10 +999,10 @@ evas_output_method_set(Evas *eo_e, int render_method)
|
|||
/* get the engine info struct */
|
||||
if (e->engine.func->info) e->engine.info = e->engine.func->info(eo_e);
|
||||
|
||||
//Wayland already handle seats.
|
||||
if (render_method == evas_render_method_lookup("wayland_shm") ||
|
||||
render_method == evas_render_method_lookup("wayland_egl"))
|
||||
return;
|
||||
// Wayland already handles seats.
|
||||
if (em->definition && (eina_streq(em->definition->name, "wayland_shm") ||
|
||||
eina_streq(em->definition->name, "wayland_egl")))
|
||||
return;
|
||||
|
||||
e->default_seat = evas_device_add_full(eo_e, "default", "The default seat",
|
||||
NULL, NULL, EVAS_DEVICE_CLASS_SEAT,
|
||||
|
|
Loading…
Reference in New Issue