summaryrefslogtreecommitdiff
path: root/src/input.c
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-08-04 13:43:24 -0400
committerJason Ekstrand <jason.ekstrand@intel.com>2014-08-05 12:31:04 -0700
commitd8c6aeb8a5f5c5e53fbbf7cfabf85c026b1e4795 (patch)
treeff2110d924b79bd2b651156f3b45ec3c1acda6b8 /src/input.c
parent70ee3ad47c12dc3b4173373f98e1dc1c7486c5d7 (diff)
downloadweston-d8c6aeb8a5f5c5e53fbbf7cfabf85c026b1e4795.tar.gz
input: Send key-repeat
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c
index 4aa8ca78..aaa22237 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1721,6 +1721,9 @@ seat_get_keyboard(struct wl_client *client, struct wl_resource *resource,
wl_resource_set_implementation(cr, &keyboard_interface,
seat, unbind_resource);
+ if (wl_resource_get_version(cr) >= WL_KEYBOARD_REPEAT_INFO_SINCE_VERSION)
+ wl_keyboard_send_repeat_info(cr, 30, 200);
+
if (seat->compositor->use_xkbcommon) {
wl_keyboard_send_keymap(cr, WL_KEYBOARD_KEYMAP_FORMAT_XKB_V1,
keyboard->xkb_info->keymap_fd,
@@ -2207,7 +2210,7 @@ weston_seat_init(struct weston_seat *seat, struct weston_compositor *ec,
wl_signal_init(&seat->destroy_signal);
wl_signal_init(&seat->updated_caps_signal);
- seat->global = wl_global_create(ec->wl_display, &wl_seat_interface, 3,
+ seat->global = wl_global_create(ec->wl_display, &wl_seat_interface, 4,
seat, bind_seat);
seat->compositor = ec;