if we have already loaded the comp module, get out.
authorChris Michael <devilhorns@comcast.net>
Tue, 11 Jun 2013 15:43:09 +0000 (16:43 +0100)
committerChris Michael <devilhorns@comcast.net>
Tue, 11 Jun 2013 15:43:09 +0000 (16:43 +0100)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/modules/wl_x11/e_mod_main.c

index f17b66046fb42d149a914cd6d974eb7f2b4e59a7..f532fa18a3c0f1ef0e04f7e38eb05ec9d97e5ef7 100644 (file)
@@ -22,6 +22,8 @@ EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Wl_X11" };
 EAPI void *
 e_modapi_init(E_Module *m)
 {
+   if (_e_x11_comp) return NULL;
+
    /* try to allocate space for comp structure */
    if (!(_e_x11_comp = E_NEW(E_Compositor_X11, 1)))
      {