]> Dogcows Code - chaz/openbox/commitdiff
grab the keybaord before cycling focus for reduced latency
authorDana Jansens <danakj@orodu.net>
Wed, 4 Jun 2003 16:39:45 +0000 (16:39 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 4 Jun 2003 16:39:45 +0000 (16:39 +0000)
plugins/keyboard/keyboard.c

index 374f24932e47078172990242f99fefe9516585f6..3a663dfa4862f3fd1252756a36d79cf00a58f34d 100644 (file)
@@ -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);
                         }
                     }
 
This page took 0.022794 seconds and 4 git commands to generate.