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:
parent
b471c3ad8d
commit
f056e7af62
|
@ -238,6 +238,8 @@ e_comp_wl_init(void)
|
||||||
int fd = 0;
|
int fd = 0;
|
||||||
char buf[PATH_MAX];
|
char buf[PATH_MAX];
|
||||||
|
|
||||||
|
if (_e_wl_comp) return EINA_TRUE;
|
||||||
|
|
||||||
/* try to allocate space for a new compositor */
|
/* try to allocate space for a new compositor */
|
||||||
if (!(_e_wl_comp = E_NEW(E_Wayland_Compositor, 1)))
|
if (!(_e_wl_comp = E_NEW(E_Wayland_Compositor, 1)))
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue