]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/themes/gtk.cpp
added carbonaccessors.o
[wxWidgets.git] / src / univ / themes / gtk.cpp
index 23f371ec8ecbf707e8c5282b1d767f5cb85dc4de..ec6405a78f3f00456d1ca8f2d20c3bdb22adb7b6 100644 (file)
@@ -2363,7 +2363,7 @@ bool wxGTKInputHandler::HandleMouse(wxControl *control,
                                     const wxMouseEvent& event)
 {
     // clicking on the control gives it focus
-    if ( event.ButtonDown() )
+    if ( event.ButtonDown() && wxWindow::FindFocus() != control )
     {
         control->SetFocus();