summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-05-06 13:42:20 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-05-06 13:42:20 -0400
commit3178064d30e6bfee79501da57dd4d76c3aac1163 (patch)
tree4a378c0879f9a979449efb36ee96ac93c6909845
parent01c261e9f70dd194ccc4780f2717b7d68e9fd480 (diff)
ensure xwayland module init does not fail due to early startup
comp_type may not be set at the time of init
-rw-r--r--src/modules/xwayland/e_mod_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/xwayland/e_mod_main.c b/src/modules/xwayland/e_mod_main.c
index 49c9ec1fb..3e5c895f0 100644
--- a/src/modules/xwayland/e_mod_main.c
+++ b/src/modules/xwayland/e_mod_main.c
@@ -349,7 +349,7 @@ xwl_init(E_Module *m)
349 char disp[8]; 349 char disp[8];
350 350
351 /* make sure it's a wayland compositor */ 351 /* make sure it's a wayland compositor */
352 if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return NULL; 352 if (e_comp->comp_type == E_PIXMAP_TYPE_X) return NULL;
353 353
354 if (getenv("DISPLAY")) 354 if (getenv("DISPLAY"))
355 { 355 {