if grab fails dont set grabbed_key

This commit is contained in:
Dana Jansens 2003-06-26 07:58:44 +00:00
parent d3dd25a55c
commit 2052385333

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