use new functions to cancel key grabs

This commit is contained in:
Dana Jansens 2007-05-28 21:56:27 +00:00
parent c7731ecb8d
commit 6e5d9c5337

View file

@ -190,8 +190,7 @@ void focus_nothing()
actions should not rely on being able to move focus during an actions should not rely on being able to move focus during an
interactive grab. interactive grab.
*/ */
if (keyboard_interactively_grabbed()) event_cancel_all_key_grabs();
keyboard_interactive_cancel();
/* when nothing will be focused, send focus to the backup target */ /* when nothing will be focused, send focus to the backup target */
XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot, XSetInputFocus(ob_display, screen_support_win, RevertToPointerRoot,