From: duna.oh Date: Tue, 10 Dec 2024 01:23:39 +0000 (+0900) Subject: e_pointer: update cursor position with the new hot spot X-Git-Tag: accepted/tizen/unified/20241216.185842~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aeae53436a86d24e91fc668770fe342521b10cf1;p=platform%2Fupstream%2Fenlightenment.git e_pointer: update cursor position with the new hot spot If the client requests to change its cursor with new buffer and new hot spot, E20 changes its cursor client to the new buffer. However it didn't update the cursor position with the new hot spot. This patch resolves that issue. Change-Id: I861df47b44693cb273a1c1be83cf95845ff4a0d4 --- diff --git a/src/bin/windowmgr/e_pointer.c b/src/bin/windowmgr/e_pointer.c index 9259b20bf0..4579517299 100644 --- a/src/bin/windowmgr/e_pointer.c +++ b/src/bin/windowmgr/e_pointer.c @@ -76,7 +76,7 @@ _e_pointer_desk_zoom_get(double *zx, double *zy) e_desk_zoom_get(desk, zx, zy, NULL, NULL); } -/* move the cursor image with the calcaultion of the hot spot */ +/* move the cursor image with the calculation of the hot spot */ static void _e_pointer_position_update(E_Pointer *ptr) { @@ -494,11 +494,11 @@ e_pointer_view_set(E_Pointer *ptr, E_View_Client *view_client, int x, int y) /* apply the cursor obj map */ _e_pointer_map_apply(ptr); - - /* move the pointer to the current position */ - _e_pointer_position_update(ptr); } + /* update cursor position with the new hot spot*/ + _e_pointer_position_update(ptr); + if (need_call_hide) _e_pointer_hook_call(E_POINTER_HOOK_HIDE, ptr); }