diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2014-02-22 21:37:29 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2014-10-20 10:28:00 +0200 |
| commit | 7b3dc69468e3cb97117b82036041afd9d89912e1 (patch) | |
| tree | 1dcc98d31797ddc569813dc35a81cd519d4e36da /openbox/config.c | |
| parent | 39dfb7458a75ca502fb0c18ec0f1a107f5d51249 (diff) | |
Add keyboard/rebindOnMappingNotify option
I have to switch to a qwerty layout to play steam games, and every time
I switch back and forth, we lose some random bindings so I also had to
reconfigure Openbox every time, now I don't.
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/openbox/config.c b/openbox/config.c index 76f48569..434791bf 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -83,8 +83,9 @@ guint config_dock_show_delay; guint config_dock_app_move_button; guint config_dock_app_move_modifiers; -guint config_keyboard_reset_keycode; -guint config_keyboard_reset_state; +guint config_keyboard_reset_keycode; +guint config_keyboard_reset_state; +gboolean config_keyboard_rebind_on_mapping_notify; gint config_mouse_threshold; gint config_mouse_dclicktime; @@ -503,6 +504,9 @@ static void parse_keyboard(xmlNodePtr node, gpointer d) parse_key(n, NULL); n = obt_xml_find_node(n->next, "keybind"); } + + if ((n = obt_xml_find_node(node->children, "rebindOnMappingNotify"))) + config_keyboard_rebind_on_mapping_notify = obt_xml_node_bool(n); } /* @@ -1120,6 +1124,7 @@ void config_startup(ObtXmlInst *i) translate_key("C-g", &config_keyboard_reset_state, &config_keyboard_reset_keycode); + config_keyboard_rebind_on_mapping_notify = TRUE; bind_default_keyboard(); |
