devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d8d671548aff9cbca5565551489aefbec8b943f6

commit d8d671548aff9cbca5565551489aefbec8b943f6
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jul 14 14:31:15 2015 -0400

    ecore-wl: Don't renew keyboard-repeat timer if we have no focused surface
    
    Summary: During the keyboard repeat function, if we have no keyboard
    focused window to send the key to, then we should cancel the repeat
    timer.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wayland/ecore_wl_input.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/lib/ecore_wayland/ecore_wl_input.c 
b/src/lib/ecore_wayland/ecore_wl_input.c
index 0988981..cb4bc61 100644
--- a/src/lib/ecore_wayland/ecore_wl_input.c
+++ b/src/lib/ecore_wayland/ecore_wl_input.c
@@ -907,11 +907,14 @@ _ecore_wl_input_cb_keyboard_repeat(void *data)
    if (!(input = data)) return ECORE_CALLBACK_RENEW;
 
    if ((win = input->keyboard_focus))
-     _ecore_wl_input_cb_keyboard_key(input, NULL, input->display->serial,
-                                     input->repeat.time,
-                                     input->repeat.key, EINA_TRUE);
+     {
+        _ecore_wl_input_cb_keyboard_key(input, NULL, input->display->serial,
+                                        input->repeat.time,
+                                        input->repeat.key, EINA_TRUE);
+        return ECORE_CALLBACK_RENEW;
+     }
 
-   return ECORE_CALLBACK_RENEW;
+   return ECORE_CALLBACK_CANCEL;
 }
 
 static void

-- 


Reply via email to