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



commit 765f8344cd33c29f808a32c4b994c9ca562fe745
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 3773e4d..23dcd24 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -2539,7 +2539,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]