wvkbd

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

commit 58e52575b68366d2a73f0f45c3ca7386573fa9bc
parent 447f655db3817656bdbda76d1d9a519187ae06c8
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Tue, 24 Aug 2021 09:37:14 +0200

cleanup

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

diff --git a/keyboard.h b/keyboard.h @@ -174,9 +174,9 @@ kbd_unpress_key(struct kbd *kb, uint32_t time) { create_and_upload_keymap(kb->layout->keymap_name, 0, 0); } kb->layout = kb->prevlayout; - if (kb->mods & Shift == Shift) kb->mods ^= Shift; + if ((kb->mods & Shift) == Shift) kb->mods ^= Shift; kbd_draw_layout(kb); - } else if (kb->mods & Shift == Shift) { + } else if ((kb->mods & Shift) == Shift) { kb->mods ^= Shift; kbd_draw_layout(kb); }