Introduction
Introduction Statistics Contact Development Disclaimer Help
ternary operator was used in the wrong order - svkbd - simple virtual keyboard
git clone git://git.suckless.org/svkbd
Log
Files
Refs
README
LICENSE
---
commit 02f13a74c3e78f56d14919c3d41542c612121e8c
parent f2322e9c0e5315e5dcc2c12b9296ae963a2a617d
Author: Maarten van Gompel <[email protected]>
Date: Sat, 27 Mar 2021 17:57:30 +0100
ternary operator was used in the wrong order
Diffstat:
M svkbd.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);
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.