ensure xwayland module init does not fail due to early startup

comp_type may not be set at the time of init
This commit is contained in:
Mike Blumenkrantz 2016-05-06 13:42:20 -04:00
parent aef99290d0
commit de03be5131
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ xwl_init(E_Module *m)
char disp[8];
/* make sure it's a wayland compositor */
if (e_comp->comp_type != E_PIXMAP_TYPE_WL) return NULL;
if (e_comp->comp_type == E_PIXMAP_TYPE_X) return NULL;
if (getenv("DISPLAY"))
{