Remove HAVE_WAYLAND_ONLY dependency from searching and enabling backend module.
authorSeunghun Lee <beauty.positive3@gmail.com>
Mon, 20 Oct 2014 15:53:18 +0000 (11:53 -0400)
committerChris Michael <cp.michael@samsung.com>
Mon, 20 Oct 2014 15:53:26 +0000 (11:53 -0400)
Summary:
this patch allows to enable wl_drm module(if it's exsited) without setting E_WL_FORCE as a wl_drm under HAVE_WAYLAND_ONLY.
this patch also prevent a crash under below condition. running enlightenment with HAVE_WAYLAND_ONLY option and without set E_WL_FORCE occurs crash where try to refer E_Manager because E_Manager is created in wl_drm module.

Reviewers: devilhorns

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D1549

src/bin/e_comp.c

index 7d8fdd2..acd8ea8 100644 (file)
@@ -1051,6 +1051,7 @@ e_comp_init(void)
 
 #ifndef HAVE_WAYLAND_ONLY
    if (!e_comp_x_init())
+#endif
      {
         const char **test, *eng[] =
         {
@@ -1072,7 +1073,6 @@ e_comp_init(void)
           }
         return EINA_FALSE;
      }
-#endif
 #if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY)
    e_comp_wl_init();
 #endif