aboutsummaryrefslogtreecommitdiff
path: root/keyboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard.c')
-rw-r--r--keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboard.c b/keyboard.c
index 3836333..1ab8f9e 100644
--- a/keyboard.c
+++ b/keyboard.c
@@ -81,7 +81,7 @@ void wl_keyboard_key(void *data, struct wl_keyboard *wl_keyboard,
if (key_state == WL_KEYBOARD_KEY_STATE_PRESSED) {
// if the key is one we should repeat
- if (type_key(state, keysym)) {
+ if (execute_keypress(state, keysym) == KEY_REPEAT) {
// start repeat
state->repeat_key = keysym;
struct itimerspec timer = {0};