From 30285a679fa9572a43caa4eb77d5670274ecd0a7 Mon Sep 17 00:00:00 2001 From: June 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') diff --git a/bin/gfx/x11.c b/bin/gfx/x11.c index 5112efba..524c8c63 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 ef='/src/refs/?id=f46cbea7eb34106a07810c122c266ad19dbeefcf'>refs log tree commit diff
path: root/bin/man/ttpre.1 (unfollow)
Commit message (Expand)Author
2019-01-10Remove profile and dot.profileJune McEnroe
2019-01-10Replace strchrnul with strchrJune McEnroe
2019-01-10Replace eaccess with faccessatJune McEnroe
2019-01-10Replace st_mtim with st_mtimespecJune McEnroe
2019-01-10Replace sys_nsig with NSIGJune McEnroe
2019-01-10Replace cash MakefileJune McEnroe
2019-01-10Move bltin out of subdirectoryJune McEnroe