g_focused = EINA_FALSE;
g_desired_key_rate = 0.0;
- Ecore_Wl2_Input *input = ecore_wl2_window_keyboard_get(imcontext->window);
- if (input) {
- if (!ecore_wl2_input_keyboard_repeat_set (input, g_original_key_rate, g_original_key_delay)) {
- LOGE ("ecore_wl2_input_keyboard_repeat_set failed.");
+ Ecore_Wl2_Display *wl2_display = ecore_wl2_connected_display_get(NULL);
+ if (wl2_display) {
+ Ecore_Wl2_Input *input = ecore_wl2_input_default_input_get(wl2_display);
+ if (input) {
+ if (!ecore_wl2_input_keyboard_repeat_set (input, g_original_key_rate, g_original_key_delay)) {
+ LOGE ("ecore_wl2_input_keyboard_repeat_set failed.");
+ }
+ else {
+ LOGD ("ecore_wl2_input_keyboard_repeat_set(%f, %f)", g_original_key_rate, g_original_key_delay);
+ }
}
else {
- LOGD ("ecore_wl2_input_keyboard_repeat_set(%f, %f)", g_original_key_rate, g_original_key_delay);
+ LOGW("ctx : %p, Can't get Wl_Input", ctx);
}
}
else {
- LOGW("ctx : %p, Can't get Wl_Input", ctx);
+ LOGW("ctx : %p, Can't get Wl_Display", ctx);
}
}
}