svkbd

simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log | Files | Refs | README | LICENSE

commit 02f13a74c3e78f56d14919c3d41542c612121e8c
parent f2322e9c0e5315e5dcc2c12b9296ae963a2a617d
Author: Maarten van Gompel <proycon@anaproy.nl>
Date:   Sat, 27 Mar 2021 17:57:30 +0100

ternary operator was used in the wrong order

Diffstat:
Msvkbd.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/svkbd.c b/svkbd.c @@ -504,7 +504,7 @@ printkey(Key *k, KeySym mod) { XKeyPressedEvent event; event.type = KeyPress; event.display = dpy; - event.state = ShiftMask ? shift : 0; + event.state = shift ? ShiftMask : 0; event.keycode = XKeysymToKeycode(dpy, *keysym); if (event.keycode == 0) event.keycode = tmp_remap(*keysym);