summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-09 17:11:03 -0500
committerJune McEnroe <programble@gmail.com>2018-02-09 17:11:03 -0500
commita9641e53eb840c15b905313ece14627bb6902985 (patch)
tree8b9ffa83d10e663c1dbc2ba2e14bcaf228532a90 /bin
parentClean up bin/gfx/x11.c (diff)
downloadsrc-a9641e53eb840c15b905313ece14627bb6902985.tar.gz
src-a9641e53eb840c15b905313ece14627bb6902985.zip
Fix X11 KeySym lookup with modifiers
On friends' systems there appear to be modifiers that are always set
which were intefering with selecting the KeySym based on the state of
shift.
Diffstat (limited to '')
-rw-r--r--bin/gfx/x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gfx/x11.c b/bin/gfx/x11.c
index 7b7676dc..108d6459 100644
--- a/bin/gfx/x11.c
+++ b/bin/gfx/x11.c
@@ -101,7 +101,7 @@ int main(int argc, char *argv[]) {
         switch (event.type) {
             case KeyPress: {
                 XKeyEvent key = event.xkey;
-                KeySym sym = XLookupKeysym(&key, key.state);
+                KeySym sym = XLookupKeysym(&key, key.state & ShiftMask);
                 if (sym > 0x80) break;
                 if (!input(sym)) return EX_OK;
                 XStoreName(display, window, status());
2020-02-11Move XDG_SUBDIR out of chat.hJune McEnroe 2020-02-11Fix whois idle unit calculationJune McEnroe Rookie mistake. 2020-02-11Cast towupper to wchar_tJune McEnroe For some reason it takes and returns wint_t... 2020-02-11Cast set but unused variables to voidJune McEnroe 2020-02-11Declare strlcatJune McEnroe 2020-02-11Check if VDSUSP existsJune McEnroe 2020-02-11Fix completeReplace iterationJune McEnroe 2020-02-11Use pkg(8) to configure on FreeBSDJune McEnroe 2020-02-11Remove legacy codeJune McEnroe 2020-02-11Add INSTALLING section to READMEJune McEnroe