commit a642292e6cd5fadb79c25e768fe187cc01e939ea
parent f652931011b761b1a5eb96ea1a2684c3a903d1b5
Author: Ben Webb <ben@salilab.org>
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gtkport/gtkport.c b/src/gtkport/gtkport.c
@@ -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;
}
}