add special case for returning pixmap argb of unusable wl cursor pixmaps

this is usually called before the surface commits, so ensure that the
most likely case is returned as the default until the commit occurs

fixes black rect flickerings around the cursor
This commit is contained in:
Mike Blumenkrantz 2016-11-03 12:28:24 -04:00
parent 13f408f1e1
commit 03ad3620c7
1 changed files with 4 additions and 1 deletions

View File

@ -899,7 +899,10 @@ e_pixmap_image_is_argb(const E_Pixmap *cp)
#endif
case E_PIXMAP_TYPE_WL:
#ifdef HAVE_WAYLAND
return cp->image_argb;
if (cp->usable)
return cp->image_argb;
if (((E_Comp_Wl_Client_Data*)cp->client->comp_data)->cursor)
return EINA_TRUE;
#endif
default: break;
}