From: Dana Jansens Date: Thu, 26 Jun 2003 07:58:44 +0000 (+0000) Subject: if grab fails dont set grabbed_key X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2052385333dd5fc8285a1bbc20700cdb2f45bd3b;p=chaz%2Fopenbox if grab fails dont set grabbed_key --- diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 8cb6866f..3fe74aea 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -238,9 +238,8 @@ static void event(ObEvent *e, void *foo) } if (act->func == action_cycle_windows && - !grabbed_key) { + !grabbed_key && grab_keyboard(TRUE)) { grabbed_key = p; - grab_keyboard(TRUE); } act->data.any.c = focus_client;