]> Dogcows Code - chaz/openbox/commitdiff
if grab fails dont set grabbed_key
authorDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 07:58:44 +0000 (07:58 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 26 Jun 2003 07:58:44 +0000 (07:58 +0000)
plugins/keyboard/keyboard.c

index 8cb6866ff844fdc6e3940a809e79ae48c657921c..3fe74aea07bedca68249d5c7ac3be2993ba7a983 100644 (file)
@@ -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;
This page took 0.023333 seconds and 4 git commands to generate.