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-08 17:03:48 +0000
commit5d94b02a03877adf85f4e4f721d4f1adaece5397 (patch)
tree43dd2c7660ae8a0268114915fdcb14cf8fd12c50 /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 f7b0e23c..1b660741 100644
--- a/input.c
+++ b/input.c
@@ -1151,7 +1151,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? */