forked from enlightenment/enlightenment
change comp type check at start of e_comp_wl_init()
at present, this value will be set to either TYPE_NONE if no valid compositor has been created or TYPE_X if running a wl compositor inside an x11 compositor
This commit is contained in:
parent
15540c01e4
commit
18c34ed151
|
@ -2475,7 +2475,7 @@ disp_err:
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
e_comp_wl_init(void)
|
e_comp_wl_init(void)
|
||||||
{
|
{
|
||||||
if (e_comp->comp_type == E_PIXMAP_TYPE_WL)
|
if (e_comp->comp_type != E_PIXMAP_TYPE_X)
|
||||||
e_comp->root = ecore_evas_window_get(e_comp->ee);
|
e_comp->root = ecore_evas_window_get(e_comp->ee);
|
||||||
/* set gl available if we have ecore_evas support */
|
/* set gl available if we have ecore_evas support */
|
||||||
if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) ||
|
if (ecore_evas_engine_type_supported_get(ECORE_EVAS_ENGINE_WAYLAND_EGL) ||
|
||||||
|
|
Loading…
Reference in New Issue