[gtk+/native-layout: 42/59] Generate correct grab broken event for WM_KILLFOCUS



commit 2517035bc0b5d8d102fb23598b6c180e41093a0d
Author: Tor Lillqvist <tml iki fi>
Date:   Tue Jun 22 21:15:59 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 d166980..e2f2471 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 */



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