forked from enlightenment/enlightenment
Check for valid wayland compositor before trying to init desktop shell.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
parent
0bf381bae8
commit
2eef67fba6
|
@ -160,6 +160,9 @@ e_modapi_init(E_Module *m)
|
||||||
E_Wayland_Input *input = NULL;
|
E_Wayland_Input *input = NULL;
|
||||||
Eina_List *l = NULL;
|
Eina_List *l = NULL;
|
||||||
|
|
||||||
|
/* test for valid compositor */
|
||||||
|
if (!_e_wl_comp) return NULL;
|
||||||
|
|
||||||
/* try to allocate space for the shell structure */
|
/* try to allocate space for the shell structure */
|
||||||
if (!(shell = E_NEW(E_Wayland_Desktop_Shell, 1)))
|
if (!(shell = E_NEW(E_Wayland_Desktop_Shell, 1)))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue