From 61ef289fe4ad0d5e770c81b5f9b93c6ead457f77 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Sat, 4 May 2013 12:30:02 +0100 Subject: [PATCH] Check for valid wayland compositor before trying to init desktop shell. Signed-off-by: Chris Michael --- src/modules/wl_desktop_shell/e_mod_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/wl_desktop_shell/e_mod_main.c b/src/modules/wl_desktop_shell/e_mod_main.c index 792f9d1..43be87e 100644 --- a/src/modules/wl_desktop_shell/e_mod_main.c +++ b/src/modules/wl_desktop_shell/e_mod_main.c @@ -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; -- 2.7.4