summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/win32
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2014-06-25 13:11:16 -0400
committerChris Michael <cp.michael@samsung.com>2014-06-25 13:20:49 -0400
commit87af84c3e37429694fff6f04e70332dc1bcc8c5d (patch)
treea7d05c5e167838a45939b545b8c42c3d83b1ecc4 /src/modules/ecore_evas/engines/win32
parentd69e4fbe203d9689fcebc9cd6e3d4e799dd2123e (diff)
ecore-evas: Fix cursor position getting reset to 0,0 when using
ecore_evas_cursor_object_set NB: Previously, if we mad calls to ecore_evas_cursor_object_set to update the mouse cursor hotspot, the mouse cursor would be repositioned at 0,0 on the canvas due to x & y being set to 0,0. We fix that here by fetching the current mouse position Regardless if we are changing the object or not (ie: perhaps we are just updating the hotspot and not the object) @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/modules/ecore_evas/engines/win32')
-rw-r--r--src/modules/ecore_evas/engines/win32/ecore_evas_win32.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
index a6a6acea85..4da89ca5a6 100644
--- a/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
+++ b/src/modules/ecore_evas/engines/win32/ecore_evas_win32.c
@@ -839,10 +839,11 @@ _ecore_evas_win32_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int ho
839 ee->prop.cursor.hot.x = hot_x; 839 ee->prop.cursor.hot.x = hot_x;
840 ee->prop.cursor.hot.y = hot_y; 840 ee->prop.cursor.hot.y = hot_y;
841 841
842 evas_pointer_output_xy_get(ee->evas, &x, &y);
843
842 if (obj != old) 844 if (obj != old)
843 { 845 {
844// ecore_win32_window_cursor_show(ee->prop.window, 0); 846// ecore_win32_window_cursor_show(ee->prop.window, 0);
845 evas_pointer_output_xy_get(ee->evas, &x, &y);
846 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer); 847 evas_object_layer_set(ee->prop.cursor.object, ee->prop.cursor.layer);
847 evas_object_pass_events_set(ee->prop.cursor.object, 1); 848 evas_object_pass_events_set(ee->prop.cursor.object, 1);
848 if (evas_pointer_inside_get(ee->evas)) 849 if (evas_pointer_inside_get(ee->evas))