devilhorns pushed a commit to branch master.

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

commit d4a483c40bbd7843b0fc8420e55b3d02d7896184
Author: Chris Michael <[email protected]>
Date:   Thu Oct 27 14:56:36 2016 -0400

    ecore-wl2: Disable pointer frame callback if no cursor surface
    
    If we have no cursor surface, then we don't need the pointer frame
    callback anymore so call cursor_update_stop which will delete the
    pointer frame callback
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/lib/ecore_wl2/ecore_wl2_window.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index b04d9a6..e5a0774 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -953,7 +953,10 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, 
struct wl_surface *surfac
    input->cursor.hot_x = hot_x;
    input->cursor.hot_y = hot_y;
 
-   _ecore_wl2_input_cursor_update(input);
+   if (!input->cursor.surface)
+     _ecore_wl2_input_cursor_update_stop(input);
+   else
+     _ecore_wl2_input_cursor_update(input);
 }
 
 EAPI void

-- 


Reply via email to