ungrab only as many times as we grabbed
This commit is contained in:
parent
922580e891
commit
bd41f6ee1e
1 changed files with 7 additions and 4 deletions
|
@ -186,12 +186,15 @@ gboolean keyboard_process_interactive_grab(const XEvent *e,
|
||||||
|
|
||||||
s->action->func(&s->action->data);
|
s->action->func(&s->action->data);
|
||||||
|
|
||||||
grab_keyboard(FALSE);
|
|
||||||
grab_pointer(FALSE, OB_CURSOR_NONE);
|
|
||||||
keyboard_reset_chains();
|
|
||||||
|
|
||||||
g_free(s);
|
g_free(s);
|
||||||
|
|
||||||
interactive_states = g_slist_delete_link(interactive_states, it);
|
interactive_states = g_slist_delete_link(interactive_states, it);
|
||||||
|
if (!interactive_states) {
|
||||||
|
grab_keyboard(FALSE);
|
||||||
|
grab_pointer(FALSE, OB_CURSOR_NONE);
|
||||||
|
keyboard_reset_chains();
|
||||||
|
}
|
||||||
|
|
||||||
handled = TRUE;
|
handled = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue