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') 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 rc/refs/?id=038acb72b987a1d945513cea81f9c87b5da86773'>refs log tree commit diff
path: root/bin/.gitignore (unfollow)
Commit message (Expand)Author
2018-02-11Avoid xres/yres names in gfxxJune McEnroe
2018-02-11Only set GFX if unsetJune McEnroe
2018-02-09Link -lncursesJune McEnroe
2018-02-09Fix X11 KeySym lookup with modifiersJune McEnroe
2018-02-09Clean up bin/gfx/x11.cJune McEnroe
2018-02-09Move gfx interface to header fileJune McEnroe
2018-02-09Silence BSD ctags warningsJune McEnroe
2018-02-09Link LDLIBS regardless of GFXJune McEnroe
2018-02-09Move gfx frontends around to simplify buildJune McEnroe
2018-02-07Add janky X11 graphics frontendJune McEnroe
2018-02-07Include stdio.h in gfb.cJune McEnroe
2018-02-07Exit by returning false from input to gf{b,cocoa}June McEnroe
2018-02-07Rename title to status in gfcocoaJune McEnroe
2018-02-06Require 4 bit counts on gfxx command lineJune McEnroe
2018-02-06Add gfxx controls for custom bitsJune McEnroe
2018-02-06Add gfxx palette loading and dumpingJune McEnroe
2018-02-06Add tags targetJune McEnroe
2018-02-06Replace gfxx SCALE macro with interp functionJune McEnroe
2018-02-05Rename gfxx space indexed and add palette samplingJune McEnroe
2018-02-05Take scale into account for when to stop drawing in gfxxJune McEnroe
2018-02-05Always skip most significant bits in gfxxJune McEnroe
2018-02-05Set title in gfcocoaJune McEnroe
2018-02-05Double-buffer gfb frontendJune McEnroe
2018-02-05Rewrite gfxx bit handlingJune McEnroe
2018-02-05Add flip option to gfxxJune McEnroe
2018-02-05Remove gfxx reverse optionJune McEnroe
2018-02-04Fix gfxx draw stop conditionJune McEnroe
2018-02-04Reuse CGColorSpace and CGDataProvider in gfcocoaJune McEnroe
2018-02-04Mark mac target phonyJune McEnroe
2018-02-04Set up Makefile for gfxx-cocoa or gfxx-fbJune McEnroe
2018-02-04Avoid doing excessive work in gfxxJune McEnroe
2018-02-04Handle window resizing in gfcocoaJune McEnroe
2018-02-04Set cinoptionsJune McEnroe
2018-02-04Tweak colorscheme moreJune McEnroe
2018-02-04Color MatchParen DarkYellowJune McEnroe
2018-02-04Add palette sampling to gfxxJune McEnroe
2018-02-04Add 4-bit RGB to gfxxJune McEnroe
2018-02-04Add Quit menu item to gfcocoaJune McEnroe
2018-02-04Switch back to sane Objective-C styleJune McEnroe
2018-02-04Quit gfcocoa when window closesJune McEnroe
2018-02-03Apparently this is how people write Objective-CJune McEnroe