discomfitor pushed a commit to branch enlightenment-0.21.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0bf3a3d3657c19293f8bb51a68823b63563878dd

commit 0bf3a3d3657c19293f8bb51a68823b63563878dd
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Nov 3 12:28:24 2016 -0400

    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 1e591d9..a7031cc 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;
      }

-- 


Reply via email to