check for an already existing wayland compositor before trying to

create another one.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-06-26 10:19:34 -04:00
parent b471c3ad8d
commit f056e7af62
1 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,8 @@ e_comp_wl_init(void)
int fd = 0;
char buf[PATH_MAX];
if (_e_wl_comp) return EINA_TRUE;
/* try to allocate space for a new compositor */
if (!(_e_wl_comp = E_NEW(E_Wayland_Compositor, 1)))
return EINA_FALSE;