From adf1bbe28a3edd0bc40fa447adc8a9185905bc31 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 22 Jun 2010 21:15:59 +0300 Subject: [PATCH] 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. --- gdk/win32/gdkevents-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index d166980ddd..e2f2471e42 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -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 */