forked from enlightenment/enlightenment
e-comp-wl: Add support for wl_keyboard_send_repeat_info to allow for configurable keyboard repeat rates
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
74e96f3826
commit
46997706ea
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue