ecore_wl_input: fix key repeat condition. 13/73513/5
authorHosang Kim <hosang12.kim@samsung.com>
Wed, 8 Jun 2016 09:40:36 +0000 (18:40 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Fri, 10 Jun 2016 06:18:49 +0000 (23:18 -0700)
Key repeat will be operated when window is unfocused.

Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
Change-Id: I636c3a973ef340a312454a84f7de4eca5bb8eb8b

src/lib/ecore_wayland/ecore_wl_input.c

index d25995c..dd6e41c 100644 (file)
@@ -1210,19 +1210,12 @@ _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);
-        return ECORE_CALLBACK_RENEW;
-     }
-
-   input->repeat.sym = 0;
-   input->repeat.key = 0;
-   input->repeat.time = 0;
-
-   return ECORE_CALLBACK_CANCEL;
+   // TIZEN_ONLY(20160610): fix key repeat condition. 
+   _ecore_wl_input_cb_keyboard_key(input, NULL, input->display->serial,
+                                   input->repeat.time,
+                                   input->repeat.key, EINA_TRUE);
+   //
+   return ECORE_CALLBACK_RENEW;
 }
 
 static void