Generate correct grab broken event for WM_KILLFOCUS

WM_KILLFOCUS means that a keyboard grab (not a pointer grab), if any,
has been broken. I don't think this bug has matterd much as gtk
generates a grab-broken-event signal for both keybord and pointer
grabs being broken anyway.
This commit is contained in:
Tor Lillqvist 2010-06-22 21:15:59 +03:00
parent 9b9bb4c6e8
commit adf1bbe28a

View File

@ -2517,7 +2517,7 @@ gdk_event_translate (MSG *msg,
if (keyboard_grab != NULL &&
!GDK_WINDOW_DESTROYED (keyboard_grab->window))
{
generate_grab_broken_event (device_manager, keyboard_grab->window, FALSE, NULL);
generate_grab_broken_event (device_manager, keyboard_grab->window, TRUE, NULL);
}
/* fallthrough */