]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/window.cpp
don't check whether the window is shown and enabled in AcceptsFocus() itself
[wxWidgets.git] / src / gtk1 / window.cpp
index 9e328dbcdef0592e005afc0c339b58ea02310f5e..f9934ba15e3c0ac8e02cc2c0b10418f43c10b7b7 100644 (file)
@@ -1475,7 +1475,7 @@ static gint gtk_window_button_press_callback( GtkWidget *widget,
 
     g_lastButtonNumber = gdk_event->button;
 
-    if (win->m_wxwindow && (g_focusWindow != win) && win->AcceptsFocus())
+    if (win->m_wxwindow && (g_focusWindow != win) && win->CanAcceptFocus())
     {
         gtk_widget_grab_focus( win->m_wxwindow );
 /*