devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=46997706ea8646de58cb07e9e2ba9fe798a92ab8

commit 46997706ea8646de58cb07e9e2ba9fe798a92ab8
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Jul 14 11:58:24 2015 -0400

    e-comp-wl: Add support for wl_keyboard_send_repeat_info to allow for 
configurable keyboard repeat rates
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_comp_wl_input.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp_wl_input.c b/src/bin/e_comp_wl_input.c
index 2e08418..270b1f9 100644
--- a/src/bin/e_comp_wl_input.c
+++ b/src/bin/e_comp_wl_input.c
@@ -175,6 +175,10 @@ _e_comp_wl_input_cb_keyboard_get(struct wl_client *client, 
struct wl_resource *r
                                   e_comp->wl_comp_data,
                                   _e_comp_wl_input_cb_keyboard_unbind);
 
+   /* FIXME: These values should be configurable */
+   if (wl_resource_get_version(res) >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
+     wl_keyboard_send_repeat_info(res, 0.025, 0.4);
+
    /* send current keymap */
    wl_keyboard_send_keymap(res, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
                            e_comp->wl_comp_data->xkb.fd,

-- 


Reply via email to