From: Dana Jansens Date: Wed, 4 Jun 2003 16:39:45 +0000 (+0000) Subject: grab the keybaord before cycling focus for reduced latency X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=9232682ad64c6ee0956a748312b9ca8136434bf3;p=chaz%2Fopenbox grab the keybaord before cycling focus for reduced latency --- diff --git a/plugins/keyboard/keyboard.c b/plugins/keyboard/keyboard.c index 374f2493..3a663dfa 100644 --- a/plugins/keyboard/keyboard.c +++ b/plugins/keyboard/keyboard.c @@ -217,15 +217,14 @@ static void event(ObEvent *e, void *foo) act->data.cycle.cancel = FALSE; } - act->data.any.c = focus_client; - act->func(&act->data); - if (act->func == action_cycle_windows && !grabbed_key) { grabbed_key = p; grab_keyboard(TRUE); - break; } + + act->data.any.c = focus_client; + act->func(&act->data); } }