e_compl_wl.c: Delete timer even if cursor is hidden 10/115610/3
authorritesh.u <ritesh.u@samsung.com>
Mon, 20 Feb 2017 15:10:08 +0000 (20:40 +0530)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Wed, 22 Feb 2017 03:48:27 +0000 (19:48 -0800)
Change-Id: I4e51b8419e642de9071b521a815d9aab8653f3dc
Signed-off-by: ritesh.u <ritesh.u@samsung.com>
src/bin/e_comp_wl.c

index ee1d4faebf1ac9b67b459585da7b0becd1abf5f1..8faa0d8ba89e5ce24d5b05ddb01bbfa97bc9f47d 100644 (file)
@@ -5752,11 +5752,7 @@ 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 && e_pointer_is_hidden(e_comp->pointer))
-     {
-        _e_comp_wl_cursor_reload(e_comp_wl->ptr.ec);
-     }
-   else if (e_config->use_cursor_timer == EINA_FALSE && !e_pointer_is_hidden(e_comp->pointer))
+   if (e_config->use_cursor_timer == EINA_FALSE)
      {
         if (e_comp_wl->ptr.hide_tmr)
           {
@@ -5764,6 +5760,11 @@ e_comp_wl_input_cursor_timer_enable_set(Eina_Bool enabled)
              e_comp_wl->ptr.hide_tmr = NULL;
           }
         cursor_timer_ec = NULL;
+
+        if (e_pointer_is_hidden(e_comp->pointer))
+          {
+             _e_comp_wl_cursor_reload(e_comp_wl->ptr.ec);
+          }
      }
 }