diff options
author | sabetts <sabetts> | 2006-05-15 23:46:27 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2006-05-15 23:46:27 +0000 |
commit | 4ca9e47fca39687becd9df55a540568b848bfcaa (patch) | |
tree | 4a3f9eebcc6ea125e2630e3b454e079779731021 /src/events.c | |
parent | 687ecf6f110a5edf7f8d1b0a9886a4cada3a6e9d (diff) | |
download | ratpoison-4ca9e47fca39687becd9df55a540568b848bfcaa.zip |
* src/manage.c (grab_top_level_keys): use defaults.top_kmap for the top kmap
* src/main.c (init_defaults): init defaults.top_kmap
* src/events.c (handle_key): use defaults.top_kmap for the top kmap
* src/data.h (struct rp_defaults): new field, top_kmap
* src/actions.c (set_topkmap): new prototype
(init_set_vars): topkmap new set variable
(initialize_default_keybindings): use defaults.top_kmap for the top kmap
(cmd_undefinekey): likewise
(cmd_definekey): likewise
(cmd_escape): likewise
(cmd_delkmap): likewise
(set_topkmap): new function
Diffstat (limited to 'src/events.c')
-rw-r--r-- | src/events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c index 2ef2512..dec08b8 100644 --- a/src/events.c +++ b/src/events.c @@ -383,11 +383,11 @@ static void handle_key (KeySym ks, unsigned int mod, rp_screen *s) { rp_action *key_action; - rp_keymap *map = find_keymap (TOP_KEYMAP); + rp_keymap *map = find_keymap (defaults.top_kmap); if (map == NULL) { - PRINT_ERROR (("Unable to find " TOP_KEYMAP " keymap\n")); + PRINT_ERROR (("Unable to find %s keymap\n", defaults.top_kmap)); return; } |