aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-11-28 18:20:37 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-04 17:32:06 +0000
commit6b9b03b8ddd1b3b1d929e2843a0b021e2522999d (patch)
tree000a2e7f7d6aeebf8f55f404e4d0a46d392987fa /input.c
parentchangelog: kitty: report events (diff)
input: kitty: treat repeating == pressed when report-events is off
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 322e1836..53db8614 100644
--- a/input.c
+++ b/input.c
@@ -1156,7 +1156,7 @@ kitty_kbd_protocol(struct seat *seat, struct terminal *term,
const bool disambiguate = flags & KITTY_KBD_DISAMBIGUATE;
const bool report_events = flags & KITTY_KBD_REPORT_EVENT;
- if (!report_events && !pressed)
+ if (!report_events && released)
return false;
/* TODO: should we even bother with this, or just say it’s not supported? */