From 1be5a2a44abac638a05c7205de1d183eaec75ab0 Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Wed, 7 Jun 2023 16:41:40 +0900 Subject: [PATCH] e_pointer: fix cursor position when it is rotated and moved cursor should be rotated before moved because position of cursor is adjusted by evas map rotation. Change-Id: Ic6f8c58e8eb8fd6d39d29eb0e8ec2615c1ed4713 --- src/bin/e_pointer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/e_pointer.c b/src/bin/e_pointer.c index a3ced92..156eaf0 100644 --- a/src/bin/e_pointer.c +++ b/src/bin/e_pointer.c @@ -400,11 +400,11 @@ e_pointer_object_set(E_Pointer *ptr, Evas_Object *obj, int x, int y) _e_pointer_hook_call(E_POINTER_HOOK_SHOW, ptr); } - /* move the pointer to the current position */ - _e_pointer_position_update(ptr); - /* apply the cursor obj map */ _e_pointer_map_apply(ptr); + + /* move the pointer to the current position */ + _e_pointer_position_update(ptr); } if (need_call_hide) @@ -479,8 +479,8 @@ e_pointer_rotation_set(E_Pointer *ptr, int rotation) ptr->rotation = rotation; - _e_pointer_position_update(ptr); _e_pointer_map_apply(ptr); + _e_pointer_position_update(ptr); EINA_LIST_FOREACH(e_input_devices_get(), l, dev) e_input_device_pointer_rotation_set(dev, rotation); @@ -515,8 +515,8 @@ e_pointer_hwc_set(E_Pointer *ptr, Eina_Bool set) } else { - _e_pointer_position_update(ptr); _e_pointer_map_apply(ptr); + _e_pointer_position_update(ptr); } return EINA_TRUE; -- 2.7.4