summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-03 12:28:24 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:43:06 -0500
commit0bf3a3d3657c19293f8bb51a68823b63563878dd (patch)
treeb7fe2a3ccc7396205c439b813c21be6bf1908aa1
parent249cbe1d46a8bfe08e9b37beed74a3100b92bdf8 (diff)
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
-rw-r--r--src/bin/e_pixmap.c5
1 files changed, 4 insertions, 1 deletions
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)
899#endif 899#endif
900 case E_PIXMAP_TYPE_WL: 900 case E_PIXMAP_TYPE_WL:
901#ifdef HAVE_WAYLAND 901#ifdef HAVE_WAYLAND
902 return cp->image_argb; 902 if (cp->usable)
903 return cp->image_argb;
904 if (((E_Comp_Wl_Client_Data*)cp->client->comp_data)->cursor)
905 return EINA_TRUE;
903#endif 906#endif
904 default: break; 907 default: break;
905 } 908 }