From a9641e53eb840c15b905313ece14627bb6902985 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 9 Feb 2018 17:11:03 -0500 Subject: 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. --- bin/gfx/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/gfx') 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()); -- cgit 1.4.1 e837aaf71974c5abf11888e8'>refs log tree commit diff
path: root/home (unfollow)
Commit message (Expand)Author
2019-05-27Break nicks with ZWNJJune McEnroe
2019-05-26Add DawnJune McEnroe
2019-05-20Declare vasprintf(3) for GNUJune McEnroe
2019-05-20Fix comparison warning in ttpreJune McEnroe
2019-05-20Add AuthorityJune McEnroe
2019-05-19Specify precedence of unary versions of operatorsJune McEnroe
2019-05-18Add compound assignment operators to orderJune McEnroe
2019-05-15Support simple assignment in orderJune McEnroe
2019-05-15Implement sizeof in orderJune McEnroe
2019-05-15Add orderJune McEnroe
2019-05-12Add T suffix in bitJune McEnroe
2019-05-10Highlight yacc and lex files as CJune McEnroe
2019-05-10Use val instead of suboptargJune McEnroe
2019-05-09Add Parable of the SowerJune McEnroe
2019-05-07Add bit without buildJune McEnroe
2019-05-04Fix MANDIR typoJune McEnroe
2019-05-04Move relay to binJune McEnroe