wvkbd

git clone https://git.tarina.org/wvkbd
Log | Files | Refs | README | LICENSE

commit cf77edf11c6aa56c5a3d3deb05c41ffb72bea3bf
parent 00f288b6098d350f2f9f2d6622265ed74672d713
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Mon, 23 Aug 2021 19:34:03 +0200

hide compose layer after unpress

Diffstat:
Mkeyboard.h | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/keyboard.h b/keyboard.h @@ -163,6 +163,12 @@ kbd_unpress_key(struct kbd *kb, uint32_t time) { WL_KEYBOARD_KEY_STATE_RELEASED); } kb->last_press = NULL; + + if (compose >= 2) { + compose = 0; + kb->layout = kb->prevlayout; + kbd_draw_layout(kb); + } } } @@ -232,12 +238,6 @@ kbd_press_key(struct kbd *kb, struct key *k, uint32_t time) { break; } - if (compose == 3) { - compose = 0; - kb->layout = kb->prevlayout; - kbd_draw_layout(kb); - } - kb->surf->dirty = true; }