window: Ask xkbcommon whether or not to repeat a key

dev
Kristian Høgsberg 11 years ago
parent c988362a39
commit d2a0213ee4
  1. 3
      clients/window.c

@ -2925,7 +2925,8 @@ keyboard_handle_key(void *data, struct wl_keyboard *keyboard,
its.it_value.tv_sec = 0;
its.it_value.tv_nsec = 0;
timerfd_settime(input->repeat_timer_fd, 0, &its, NULL);
} else if (state == WL_KEYBOARD_KEY_STATE_PRESSED) {
} else if (state == WL_KEYBOARD_KEY_STATE_PRESSED &&
xkb_keymap_key_repeats(input->xkb.keymap, code)) {
input->repeat_sym = sym;
input->repeat_key = key;
input->repeat_time = time;

Loading…
Cancel
Save