use better check for getting wl surface alpha from cursor pixmaps

ref 6ba85cf864
This commit is contained in:
Mike Blumenkrantz 2016-12-05 11:04:21 -05:00
parent 35530a546e
commit 923f2e900f
1 changed files with 2 additions and 2 deletions

View File

@ -901,8 +901,8 @@ e_pixmap_image_is_argb(const E_Pixmap *cp)
#ifdef HAVE_WAYLAND
if (cp->usable)
return cp->image_argb;
if (((E_Comp_Wl_Client_Data*)cp->client->comp_data)->cursor)
return EINA_TRUE;
/* only cursors can be override in wayland */
if (cp->client->override) return EINA_TRUE;
#endif
default: break;
}