forked from AuroraMiddleware/gtk
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:
parent
9b9bb4c6e8
commit
adf1bbe28a
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user