diff options
| author | Devin J. Pohly <djpohly@gmail.com> | 2017-10-11 08:47:14 -0500 |
|---|---|---|
| committer | Devin J. Pohly <djpohly@gmail.com> | 2018-02-25 21:53:24 -0600 |
| commit | ed132e11271d18a5d8aa163096bc6192c694bc47 (patch) | |
| tree | 81b7a8ef14efadfaee06e7848a1c7ab953cd5ce6 /config.def.h | |
| parent | Pass new dimensions into ttyresize (diff) | |
| download | st-ed132e11271d18a5d8aa163096bc6192c694bc47.tar.gz st-ed132e11271d18a5d8aa163096bc6192c694bc47.zip | |
Move key-matching functions into x.c
Modifiers and keysyms are specific to X, and the functions match and
kmap are only used in x.c. Needed to global-ize the key arrays and
lengths from config.h (for now).
Signed-off-by: Devin J. Pohly <djpohly@gmail.com>
Diffstat (limited to '')
| -rw-r--r-- | config.def.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config.def.h b/config.def.h index dd94be2..18cb31c 100644 --- a/config.def.h +++ b/config.def.h | |||
| @@ -209,13 +209,13 @@ Shortcut shortcuts[] = { | |||
| 209 | * If you want keys other than the X11 function keys (0xFD00 - 0xFFFF) | 209 | * If you want keys other than the X11 function keys (0xFD00 - 0xFFFF) |
| 210 | * to be mapped below, add them to this array. | 210 | * to be mapped below, add them to this array. |
| 211 | */ | 211 | */ |
| 212 | static KeySym mappedkeys[] = { -1 }; | 212 | KeySym mappedkeys[] = { -1 }; |
| 213 | 213 | ||
| 214 | /* | 214 | /* |
| 215 | * State bits to ignore when matching key or button events. By default, | 215 | * State bits to ignore when matching key or button events. By default, |
| 216 | * numlock (Mod2Mask) and keyboard layout (XK_SWITCH_MOD) are ignored. | 216 | * numlock (Mod2Mask) and keyboard layout (XK_SWITCH_MOD) are ignored. |
| 217 | */ | 217 | */ |
| 218 | static uint ignoremod = Mod2Mask|XK_SWITCH_MOD; | 218 | uint ignoremod = Mod2Mask|XK_SWITCH_MOD; |
| 219 | 219 | ||
| 220 | /* | 220 | /* |
| 221 | * Override mouse-select while mask is active (when MODE_MOUSE is set). | 221 | * Override mouse-select while mask is active (when MODE_MOUSE is set). |
| @@ -228,7 +228,7 @@ uint forceselmod = ShiftMask; | |||
| 228 | * This is the huge key array which defines all compatibility to the Linux | 228 | * This is the huge key array which defines all compatibility to the Linux |
| 229 | * world. Please decide about changes wisely. | 229 | * world. Please decide about changes wisely. |
| 230 | */ | 230 | */ |
| 231 | static Key key[] = { | 231 | Key key[] = { |
| 232 | /* keysym mask string appkey appcursor crlf */ | 232 | /* keysym mask string appkey appcursor crlf */ |
| 233 | { XK_KP_Home, ShiftMask, "\033[2J", 0, -1, 0}, | 233 | { XK_KP_Home, ShiftMask, "\033[2J", 0, -1, 0}, |
| 234 | { XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1, 0}, | 234 | { XK_KP_Home, ShiftMask, "\033[1;2H", 0, +1, 0}, |
