From: duna.oh Date: Mon, 6 Nov 2023 07:21:58 +0000 (+0900) Subject: e_comp_wl_input: when pointer is locked, delete cursor hide timer X-Git-Tag: accepted/tizen/unified/20231107.172857~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d31eaf38264b9cca65000c8f503698419cd219c5;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl_input: when pointer is locked, delete cursor hide timer When pointer is locked, no need to hide cursor by timer. After applying this patch, the sequence flow is as follows. 1. mouse moves -> cursor hide timer added mouse moves -> cursor hide timer updated 2. pointer locked -> delete cursor hide timer mouse moves -> relative motion mouse moves -> relative motion 3. pointer unlocked mouse moves -> cursor hide timer added mouse moves -> cursor hide timer updated mouse idles -> cursor hidden by timer Change-Id: I982db4fb2ed5742ef51c007394cf30ca684c7071 --- diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c index ee65cee..5d031c5 100644 --- a/src/bin/e_comp_wl_input.c +++ b/src/bin/e_comp_wl_input.c @@ -734,6 +734,8 @@ _e_comp_wl_input_pointer_constraint_enable(E_Comp_Wl_Pointer_Constraint *constra &constraint->surface_unmap_listener); if (!e_input_relative_motion_handler_set(_e_comp_wl_input_relative_motion_handler)) ERR("ERROR! Could not set relative motion handler !"); + + E_FREE_FUNC(e_comp_wl->ptr.hide_tmr, ecore_timer_del); } static void