grab the keybaord before cycling focus for reduced latency

This commit is contained in:
Dana Jansens 2003-06-04 16:39:45 +00:00
parent f827fbcaee
commit 9232682ad6

View 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);
}
}