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:30:13 +03:00
parent ce504e2217
commit bba451147b

View File

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