devilhorns pushed a commit to branch master.
commit 8f11c31396020468232daebfe30d6a87cf4ef7c7
Author: Chris Michael <[email protected]>
Date: Tue Jul 23 07:14:13 2013 +0100
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 <[email protected]>
---
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 34dfb3e..eb26099 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);
}
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk