X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/89e7a223c2771879a05a6168d740207a4cc5fe3e..ba0b7b323817e44903ba5ee199d17bbb166ed3d5:/src/univ/themes/gtk.cpp diff --git a/src/univ/themes/gtk.cpp b/src/univ/themes/gtk.cpp index 23f371ec8e..ec6405a78f 100644 --- a/src/univ/themes/gtk.cpp +++ b/src/univ/themes/gtk.cpp @@ -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();