[gtk+/gtk-2-22] Generate correct grab broken event for WM_KILLFOCUS



commit bba451147b551ccf6607fe122ff553f8f6579501
Author: Tor Lillqvist <tml iki fi>
Date:   Tue Jun 22 21:30:13 2010 +0300

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 1c1e9d5..1707a8d 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -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 */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]