Check for valid wayland compositor before trying to init desktop shell.
authorChris Michael <devilhorns@comcast.net>
Sat, 4 May 2013 11:30:02 +0000 (12:30 +0100)
committerChris Michael <devilhorns@comcast.net>
Sat, 4 May 2013 11:30:02 +0000 (12:30 +0100)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/modules/wl_desktop_shell/e_mod_main.c

index 792f9d1..43be87e 100644 (file)
@@ -160,6 +160,9 @@ e_modapi_init(E_Module *m)
    E_Wayland_Input *input = NULL;
    Eina_List *l = NULL;
 
+   /* test for valid compositor */
+   if (!_e_wl_comp) return NULL;
+
    /* try to allocate space for the shell structure */
    if (!(shell = E_NEW(E_Wayland_Desktop_Shell, 1)))
      return NULL;