WPrefs: fix key capture
commit162cca286dbe1dbd100b94d5f1dc18903c028596
authorDavid Maciejak <david.maciejak@gmail.com>
Tue, 19 Aug 2014 12:15:44 +0000 (19 20:15 +0800)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 20 Aug 2014 22:34:49 +0000 (20 23:34 +0100)
tree37945c86cf80373faba84b54e256e5cf40ce9e94
parent9c337624cf7e1d5d72775c5836936946e80fb3fa
WPrefs: fix key capture

This patch is used to fix the Debian bug #140181

It updates the NumLockMask function to report the mask and
call XFreeModifiermap when needed.
It also modifies capture_shortcut function to be able to use Super keys
and report numeric keypad when pressed (aka now detects correctly
if the numlock is enabled or not).
WPrefs.app/KeyboardShortcuts.c