tMake keyboard focus under Win32 work again by fixing gtk_window_update_focus; hWnds with focus no longer have to be direct children of the main window, but can be further removed descendants. - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit a642292e6cd5fadb79c25e768fe187cc01e939ea
parent f652931011b761b1a5eb96ea1a2684c3a903d1b5
Author: Ben Webb 
Date:   Tue, 17 Sep 2002 09:38:31 +0000

Make keyboard focus under Win32 work again by fixing gtk_window_update_focus;
hWnds with focus no longer have to be direct children of the main window, but
can be further removed descendants.


Diffstat:
  M src/gtkport/gtkport.c               |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
t@@ -1504,7 +1504,7 @@ void gtk_window_update_focus(GtkWindow *window)
   if (FocusWnd) {
     widget = GTK_WIDGET(myGetWindowLong(FocusWnd, GWL_USERDATA));
     if (widget && GTK_WIDGET(window)->hWnd &&
-        GetParent(FocusWnd) == GTK_WIDGET(window)->hWnd) {
+        IsChild(GTK_WIDGET(window)->hWnd, FocusWnd)) {
       window->focus = widget;
     }
   }