From d31eaf38264b9cca65000c8f503698419cd219c5 Mon Sep 17 00:00:00 2001 From: "duna.oh" Date: Mon, 6 Nov 2023 16:21:58 +0900 Subject: [PATCH] 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 --- src/bin/e_comp_wl_input.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.7.4