e_comp_wl: trigger cursor hide timer when the API to enable cursor timer is called 30/302130/2
authorduna.oh <duna.oh@samsung.com>
Thu, 30 Nov 2023 07:49:14 +0000 (16:49 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Fri, 1 Dec 2023 00:46:12 +0000 (00:46 +0000)
Change-Id: I5b73eb79bb4221c3d0c58e9bf1099d771ddb8c0c

src/bin/e_comp_wl.c

index b10795d..bdfadc0 100644 (file)
@@ -4616,7 +4616,14 @@ e_comp_wl_input_cursor_timer_enable_set(Eina_Bool enabled)
 {
    e_config->use_cursor_timer = !!enabled;
 
-   if (e_config->use_cursor_timer == EINA_FALSE)
+   if (e_config->use_cursor_timer)
+     {
+        if (!e_pointer_is_hidden(e_comp->pointer))
+          {
+             _e_comp_wl_cursor_move_timer_control(e_comp_wl->ptr.ec);
+          }
+     }
+   else
      {
         if (e_comp_wl->ptr.hide_tmr)
           {