raster pushed a commit to branch master.

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

commit ff90c852a7e5f0ca0b2d415041c1743f5f737c81
Author: Carsten Haitzler <ras...@rasterman.com>
Date:   Thu Apr 7 22:17:43 2022 +0100

    ptr - fix cursor getting stuck in resize after blanking
    
    i now saw this... i don't know why now... and consistently. fixed.
    
    @fix
---
 src/bin/e_pointer.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/bin/e_pointer.c b/src/bin/e_pointer.c
index 61ffe45bc..6886d929a 100644
--- a/src/bin/e_pointer.c
+++ b/src/bin/e_pointer.c
@@ -16,10 +16,13 @@ static Eina_Bool init = EINA_FALSE;
 static inline void
 _e_pointer_theme_buf(E_Pointer *ptr, char cursor[1024])
 {
+   const char *type = ptr->type;
+
+   if (!type) type = "default";
    if (ptr->color)
-     snprintf(cursor, 1024, "e/pointer/enlightenment/%s/color", ptr->type);
+     snprintf(cursor, 1024, "e/pointer/enlightenment/%s/color", type);
    else
-     snprintf(cursor, 1024, "e/pointer/enlightenment/%s/mono", ptr->type);
+     snprintf(cursor, 1024, "e/pointer/enlightenment/%s/mono", type);
 }
 
 static inline void

-- 


Reply via email to