gri3-wm/testcases
Michael Stapelberg d77d40173a Only add NumLock fallback where necessary.
Previously, we always discarded the NumLock bit when looking up key
bindings for key press events, and we always grabbed every keycode with
and without the NumLock modifier.

With this commit, the NumLock bit is no longer discarded: since the
previous commit 3bd5e6e5c8 we can
correctly look up key bindings with/without the NumLock bit, as both
variants are stored in |keycodes_head|.

Further, before adding the NumLock fallback (resulting in grabbing the
keycode with the NumLock modifier), we now check whether the key has the
same meaning when NumLock is enabled. This correctly distinguishes the
KP_End vs. KP_1 case, i.e. one can now use the following key bindings:

    # No longer accidentally triggered when pressing KP_1.
    bindsym KP_End nop KP_End

    # Properly distinguished now:
    bindsym KP_End nop KP_End
    bindsym Mod2+KP_1 nop KP_1

fixes #2346
2016-08-02 20:34:20 +02:00
..
lib Fix testsuite on OpenBSD 2016-06-11 14:47:17 +02:00
t Only add NumLock fallback where necessary. 2016-08-02 20:34:20 +02:00
.gitignore Testcases: Use Xephyr instead of XDummy 2014-10-02 23:05:00 +02:00
Makefile.PL Bump testsuite dependencies versions 2015-04-11 21:24:01 +06:00
complete-run.pl Fix spelling mistakes 2016-04-04 09:33:59 +02:00
i3-test.config Extend the fullscreen command 2014-12-10 20:42:52 +01:00
new-test Remove pointer warp from test boilerplate 2013-12-10 21:52:50 +01:00
restart-state.golden
valgrind.supp Add valgrind suppression file to testcases 2014-03-10 17:37:41 +01:00