e_comp_wl: Fix sending pointer_enter event to Wrong client 46/77046/5 accepted/tizen/common/20160705.170748 accepted/tizen/ivi/20160705.101938 accepted/tizen/mobile/20160705.102012 accepted/tizen/tv/20160705.101947 accepted/tizen/wearable/20160705.102000 submit/tizen/20160705.084238
authorAmarnath <a.amarnath@samsung.com>
Tue, 28 Jun 2016 10:23:18 +0000 (15:53 +0530)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 5 Jul 2016 08:01:04 +0000 (01:01 -0700)
Change-Id: I3f3be1d02b54579953a6b0b853e926c98be130dc
Signed-off-by: Amarnath <a.amarnath@samsung.com>
src/bin/e_comp_wl.c

index 3379a9be7b049134084f5da59da9729b5088c5d5..97cbf67b15107fcf69301f06b5815d0e090a94f3 100644 (file)
@@ -5474,13 +5474,15 @@ e_comp_wl_input_cursor_timer_enable_set(Eina_Bool enabled)
 
    if (e_config->use_cursor_timer == EINA_FALSE && e_pointer_is_hidden(e_comp->pointer))
      {
-        _e_comp_wl_cursor_reload(e_client_focused_get());
+        _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_comp_wl->ptr.hide_tmr)
-          ecore_timer_del(e_comp_wl->ptr.hide_tmr);
-        e_comp_wl->ptr.hide_tmr = NULL;
+        if (e_comp_wl->ptr.hide_tmr)
+          {
+             ecore_timer_del(e_comp_wl->ptr.hide_tmr);
+             e_comp_wl->ptr.hide_tmr = NULL;
+          }
         cursor_timer_ec = NULL;
      }
 }