e_comp_wl_input: when pointer is locked, delete cursor hide timer 38/300938/1
authorduna.oh <duna.oh@samsung.com>
Mon, 6 Nov 2023 07:21:58 +0000 (16:21 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 6 Nov 2023 08:19:22 +0000 (17:19 +0900)
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

index ee65cee..5d031c5 100644 (file)
@@ -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