From 03ad3620c76470524b252824fb389845e951426d Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 3 Nov 2016 12:28:24 -0400 Subject: [PATCH] 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 --- src/bin/e_pixmap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 1e591d933..a7031cc54 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -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; }