Allow pixmap argb state to override window state for wayland clients

Wayland argb state depends entirely on the attached buffer, so we
should use that for determining object argb state on wayland.

ref 6d397e313b
ref 60da58d8ad
This commit is contained in:
Derek Foreman 2016-06-06 14:06:00 -05:00
parent e95098fedb
commit 573df39c17
1 changed files with 4 additions and 2 deletions

View File

@ -351,10 +351,12 @@ _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;
Eina_Bool alpha;
if (!e_pixmap_is_x(cw->ec->pixmap))
alpha |= e_pixmap_image_is_argb(cw->ec->pixmap);
alpha = e_pixmap_image_is_argb(cw->ec->pixmap);
else
alpha = cw->ec->argb;
if (cw->blanked || cw->ns || cw->ec->shaped) alpha = EINA_TRUE;