devilhorns pushed a commit to branch master.

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

commit 4b0aaca9628810018f2f82da1b028adf168ccf94
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Sep 30 11:10:04 2015 -0400

    ecore-wl2: Set window input on pointer enter/leave events
    
    Summary: This is so that we can still change mouse cursor (to indicate 
resize)
    even when the window does not have focus
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/ecore_wl2_input.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c 
b/src/lib/ecore_wl2/ecore_wl2_input.c
index 56fc4ed..f52c168 100644
--- a/src/lib/ecore_wl2/ecore_wl2_input.c
+++ b/src/lib/ecore_wl2/ecore_wl2_input.c
@@ -486,6 +486,7 @@ _pointer_cb_enter(void *data, struct wl_pointer *pointer 
EINA_UNUSED, unsigned i
    window = _ecore_wl2_display_window_surface_find(input->display, surface);
    if (!window) return;
 
+   window->input = input;
    input->focus.pointer = window;
 
    _ecore_wl2_input_mouse_in_send(input, window);
@@ -510,6 +511,8 @@ _pointer_cb_leave(void *data, struct wl_pointer *pointer 
EINA_UNUSED, unsigned i
    window = _ecore_wl2_display_window_surface_find(input->display, surface);
    if (!window) return;
 
+   window->input = NULL;
+
    _ecore_wl2_input_mouse_out_send(input, window);
 }
 

-- 


Reply via email to