Check for valid wayland compositor before trying to init desktop shell.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-05-04 12:30:02 +01:00
parent f80097f0cb
commit 61ef289fe4
1 changed files with 3 additions and 0 deletions

View 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;