devilhorns pushed a commit to branch master.

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

commit eefabe1abe9063142e3a12ee1a5c7323374611ec
Author: Chris Michael <[email protected]>
Date:   Thu Sep 18 11:56:41 2014 -0400

    ecore-wayland: Allow setting input->cursor_size even if we don't have
    the shm interface yet
    
    @fix
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wayland/ecore_wl_input.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_input.c 
b/src/lib/ecore_wayland/ecore_wl_input.c
index 4374cd2..6895d69 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -215,9 +215,11 @@ ecore_wl_input_cursor_size_set(Ecore_Wl_Input *input, 
const int size)
    LOGFN(__FILE__, __LINE__, __FUNCTION__);
 
    if (!input) return;
-   EINA_SAFETY_ON_NULL_RETURN(input->display->wl.shm);
 
    input->cursor_size = size;
+
+   EINA_SAFETY_ON_NULL_RETURN(input->display->wl.shm);
+
    input->display->cursor_theme = 
      wl_cursor_theme_load(NULL, input->cursor_size, input->display->wl.shm);
 }

-- 


Reply via email to