From 8f11c31396020468232daebfe30d6a87cf4ef7c7 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 23 Jul 2013 07:14:13 +0100 Subject: [PATCH] During ecore_wl_window_pointer_set (called from ecore_evas_object_cursor_set), assign the pointer properties to the window structure so they can be applied on pointer_enter events. NB: Phab T230 Signed-off-by: Chris Michael --- src/lib/ecore_wayland/ecore_wl_window.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index 34dfb3e2c0..eb260990e0 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -564,6 +564,11 @@ ecore_wl_window_pointer_set(Ecore_Wl_Window *win, struct wl_surface *surface, in if (!win) return; + win->pointer.surface = surface; + win->pointer.hot_x = hot_x; + win->pointer.hot_y = hot_y; + win->pointer.set = EINA_TRUE; + if ((input = win->pointer_device)) ecore_wl_input_pointer_set(input, surface, hot_x, hot_y); } @@ -577,6 +582,8 @@ ecore_wl_window_cursor_from_name_set(Ecore_Wl_Window *win, const char *cursor_na if (!win) return; + win->pointer.set = EINA_FALSE; + if ((input = win->pointer_device)) ecore_wl_input_cursor_from_name_set(input, cursor_name); } @@ -590,6 +597,8 @@ ecore_wl_window_cursor_default_restore(Ecore_Wl_Window *win) if (!win) return; + win->pointer.set = EINA_FALSE; + if ((input = win->pointer_device)) ecore_wl_input_cursor_default_restore(input); }