From: Dana Jansens Date: Thu, 22 May 2003 18:22:12 +0000 (+0000) Subject: only grab C-g while in a chain X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=5ac5170decd6dcf9e86f434e55df2751a1a96e2b;p=chaz%2Fopenbox only grab C-g while in a chain --- diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 5edd6291..b67e738b 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -34,7 +34,8 @@ static void grab_keys() grab_key(p->key, p->state, GrabModeAsync); p = p->next_sibling; } - grab_key(reset_key, reset_state, GrabModeAsync); + if (curpos) + grab_key(reset_key, reset_state, GrabModeAsync); } static void reset_chains()