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:
Jean-Philippe Andre 2016-12-08 15:29:43 +09:00
parent bdb4977dda
commit 4a67074a67
1 changed files with 4 additions and 4 deletions

View File

@ -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,