grab the keybaord before cycling focus for reduced latency
This commit is contained in:
parent
f827fbcaee
commit
9232682ad6
1 changed files with 3 additions and 4 deletions
|
@ -217,15 +217,14 @@ static void event(ObEvent *e, void *foo)
|
||||||
act->data.cycle.cancel = FALSE;
|
act->data.cycle.cancel = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
act->data.any.c = focus_client;
|
|
||||||
act->func(&act->data);
|
|
||||||
|
|
||||||
if (act->func == action_cycle_windows &&
|
if (act->func == action_cycle_windows &&
|
||||||
!grabbed_key) {
|
!grabbed_key) {
|
||||||
grabbed_key = p;
|
grabbed_key = p;
|
||||||
grab_keyboard(TRUE);
|
grab_keyboard(TRUE);
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
act->data.any.c = focus_client;
|
||||||
|
act->func(&act->data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue