Added a comment so that I'd remember why I did that. - sam - An updated version… | |
git clone git://vernunftzentrum.de/sam.git | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 3bb9c772e644cbd80672749b334c7a40cbb8e894 | |
parent 793bd1a5d7f9deb74fa125b20a7f38710461ec69 | |
Author: Rob King <[email protected]> | |
Date: Tue, 13 Sep 2016 11:09:35 -0500 | |
Added a comment so that I'd remember why I did that. | |
Diffstat: | |
libXg/gwin.c | 5 +++++ | |
1 file changed, 5 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/libXg/gwin.c b/libXg/gwin.c | |
@@ -267,6 +267,11 @@ Keyaction(Widget w, XEvent *e, String *p, Cardinal *np) | |
KeySym l = NoSymbol; | |
XConvertCase(k, &l, &u); | |
+ /* Note that magic bit manipulation here - we want to check that the | |
+ * modifiers that are specified for the binding are all pressed, but | |
+ * we allow other modifiers to be as well. This is because when NumLock | |
+ * is on, it's always added to the modifier mask. | |
+ */ | |
if (l == m->s || m->s == XK_VoidSymbol){ | |
if (m->m == 0 || (m->m & ~e->xkey.state) == 0){ | |
switch (m->c){ |