From 5ac5170decd6dcf9e86f434e55df2751a1a96e2b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 22 May 2003 18:22:12 +0000 Subject: [PATCH] only grab C-g while in a chain --- plugins/keyboard/keyboard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() -- 2.45.2