devilhorns pushed a commit to branch master.

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

commit f39e0ad20d47a182c45d0541a17ed76e1b531a49
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Thu Oct 27 13:48:56 2016 -0400

    ecore-wl2: Don't create cursor frame callback if there is no cursor
    surface
    
    In the event that we have no cursor surface, then we should not be
    creating a cursor frame callback.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index fff7176..b89e3e1 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -672,7 +672,7 @@ _pointer_cb_frame(void *data, struct wl_callback *callback, 
unsigned int timesta
         input->cursor.frame_cb = NULL;
      }
 
-   if (!input->cursor.frame_cb)
+   if ((!input->cursor.frame_cb) && (input->cursor.surface))
      {
         input->cursor.frame_cb = wl_surface_frame(input->cursor.surface);
         wl_callback_add_listener(input->cursor.frame_cb,

-- 


Reply via email to