diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-12 18:05:40 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-12 18:05:40 +0000 |
| commit | fdc52e879f11166186014ebb2bac7121edf08e79 (patch) | |
| tree | c49c8a50579133286e40785ce06cd662fbbc49db /openbox/config.c | |
| parent | 83705e52c469444de38bb676c097d175e66928a7 (diff) | |
add the chainQuitKey option to teh <keyboard> section of the rc3
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/openbox/config.c b/openbox/config.c index f0514523..19b66403 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -2,6 +2,7 @@ #include "keyboard.h" #include "mouse.h" #include "prop.h" +#include "translate.h" #include "parser/parse.h" gboolean config_focus_new; @@ -29,6 +30,9 @@ ObOrientation config_dock_orient; gboolean config_dock_hide; guint config_dock_hide_timeout; +guint config_keyboard_reset_keycode; +guint config_keyboard_reset_state; + gint config_mouse_threshold; gint config_mouse_dclicktime; @@ -49,6 +53,12 @@ static void parse_key(xmlDocPtr doc, xmlNodePtr node, GList *keylist) xmlNodePtr n, nact; GList *it; + if ((n = parse_find_node("chainQuitKey", node))) { + key = parse_string(doc, n); + translate_key(key, &config_keyboard_reset_state, + &config_keyboard_reset_keycode); + } + n = parse_find_node("keybind", node); while (n) { if (parse_attr_string("key", n, &key)) { @@ -343,6 +353,9 @@ void config_startup() parse_register("dock", parse_dock, NULL); + translate_key("C-g", &config_keyboard_reset_state, + &config_keyboard_reset_keycode); + parse_register("keyboard", parse_keyboard, NULL); config_mouse_threshold = 3; |
