only check pixmap argb state for non-X11 clients

non-argb windows can have argb pixmaps.

ref 6d397e313b
This commit is contained in:
Mike Blumenkrantz 2016-05-11 18:34:49 -04:00
parent ada13539bf
commit 60da58d8ad
1 changed files with 4 additions and 1 deletions

View File

@ -351,7 +351,10 @@ _e_comp_object_updates_init(E_Comp_Object *cw)
static void
_e_comp_object_alpha_set(E_Comp_Object *cw)
{
Eina_Bool alpha = cw->ec->argb || e_pixmap_image_is_argb(cw->ec->pixmap);
Eina_Bool alpha = cw->ec->argb;
if (!e_pixmap_is_x(cw->ec->pixmap))
alpha |= e_pixmap_image_is_argb(cw->ec->pixmap);
if (cw->blanked || cw->ns || cw->ec->shaped) alpha = EINA_TRUE;