fix comp object native surface config checking for non-x11 compositors
This commit is contained in:
parent
b45e16ee23
commit
e7d534ad80
|
@ -3493,7 +3493,9 @@ e_comp_object_native_surface_set(Evas_Object *obj, Eina_Bool set)
|
||||||
if (set)
|
if (set)
|
||||||
{
|
{
|
||||||
/* native requires gl enabled, texture from pixmap enabled, and a non-shaped client */
|
/* native requires gl enabled, texture from pixmap enabled, and a non-shaped client */
|
||||||
set = (e_comp->gl && e_comp_config_get()->texture_from_pixmap && (!cw->ec->shaped));
|
set = (e_comp->gl &&
|
||||||
|
((e_comp->comp_type != E_PIXMAP_TYPE_X) || e_comp_config_get()->texture_from_pixmap) &&
|
||||||
|
(!cw->ec->shaped));
|
||||||
if (set)
|
if (set)
|
||||||
set = (!!cw->ns) || e_pixmap_native_surface_init(cw->ec->pixmap, &ns);
|
set = (!!cw->ns) || e_pixmap_native_surface_init(cw->ec->pixmap, &ns);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue