From 11d6924a1376ab5455037e1b0183449f727c85a8 Mon Sep 17 00:00:00 2001 From: ArenM Date: Mon, 13 Jun 2022 18:10:37 -0400 Subject: [PATCH] Draw compose key as pressed when compose is enabled Signed-off-by: Maarten van Gompel --- keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyboard.c b/keyboard.c index 3c77a4b..365a096 100644 --- a/keyboard.c +++ b/keyboard.c @@ -413,7 +413,8 @@ kbd_draw_layout(struct kbd *kb) { next_key++; continue; } - if (next_key->type == Mod && kb->mods & next_key->code) { + if ((next_key->type == Mod && kb->mods & next_key->code) || + (next_key->type == Compose && kb->compose)) { kbd_draw_key(kb, next_key, Press); } else { kbd_draw_key(kb, next_key, Unpress);