From fdc52e879f11166186014ebb2bac7121edf08e79 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 12 Aug 2003 18:05:40 +0000 Subject: add the chainQuitKey option to teh section of the rc3 --- openbox/keyboard.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'openbox/keyboard.c') diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 513b6e1e..0ba7c869 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -8,6 +8,7 @@ #include "action.h" #include "prop.h" #include "timer.h" +#include "config.h" #include "keytree.h" #include "keyboard.h" #include "translate.h" @@ -36,6 +37,10 @@ static void grab_for_window(Window win, gboolean grab) grab_key(p->key, p->state, win, GrabModeAsync); p = p->next_sibling; } + if (curpos) + grab_key(config_keyboard_reset_keycode, + config_keyboard_reset_state, + win, GrabModeAsync); } } @@ -179,6 +184,13 @@ void keyboard_event(ObClient *client, const XEvent *e) g_assert(e->type == KeyPress); + if (e->xkey.keycode == config_keyboard_reset_keycode && + e->xkey.state == config_keyboard_reset_state) + { + keyboard_reset_chains(); + return; + } + if (curpos == NULL) p = keyboard_firstnode; else -- cgit v1.2.3