summaryrefslogtreecommitdiff
path: root/src/lib/ecore_wayland
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2015-07-14 14:31:15 -0400
committerChris Michael <cp.michael@samsung.com>2015-07-14 14:31:15 -0400
commitd8d671548aff9cbca5565551489aefbec8b943f6 (patch)
tree0151bb4077471c1ec740bbe12e5c29d35351fc53 /src/lib/ecore_wayland
parent1fb5698f352b2369ae3e9dba33d3a76b867857b5 (diff)
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.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_wayland')
-rw-r--r--src/lib/ecore_wayland/ecore_wl_input.c11
1 files 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)
907 if (!(input = data)) return ECORE_CALLBACK_RENEW; 907 if (!(input = data)) return ECORE_CALLBACK_RENEW;
908 908
909 if ((win = input->keyboard_focus)) 909 if ((win = input->keyboard_focus))
910 _ecore_wl_input_cb_keyboard_key(input, NULL, input->display->serial, 910 {
911 input->repeat.time, 911 _ecore_wl_input_cb_keyboard_key(input, NULL, input->display->serial,
912 input->repeat.key, EINA_TRUE); 912 input->repeat.time,
913 input->repeat.key, EINA_TRUE);
914 return ECORE_CALLBACK_RENEW;
915 }
913 916
914 return ECORE_CALLBACK_RENEW; 917 return ECORE_CALLBACK_CANCEL;
915} 918}
916 919
917static void 920static void