From 324c58d9e2d1c83aeb3e241b6cc2879234c0f5d4 Mon Sep 17 00:00:00 2001 From: Ilya Sinitsyn Date: Mon, 18 Mar 2019 20:17:48 +0700 Subject: [PATCH] Do not set focus to the window when its rich tooltip is shown Don't set the focus to the window the rich tooltip refers to in its ShowFor() method because this was inconsistent with plain tooltips and also could result in infinite recursion if the window decided to show its tooltip when it got focus. Closes https://github.com/wxWidgets/wxWidgets/pull/1265 --- src/generic/richtooltipg.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/generic/richtooltipg.cpp b/src/generic/richtooltipg.cpp index 1905538a08..ae0fcd7119 100644 --- a/src/generic/richtooltipg.cpp +++ b/src/generic/richtooltipg.cpp @@ -667,9 +667,6 @@ void wxRichToolTipGenericImpl::SetTitleFont(const wxFont& font) void wxRichToolTipGenericImpl::ShowFor(wxWindow* win, const wxRect* rect) { - // Set the focus to the window the tooltip refers to to make it look active. - win->SetFocus(); - wxRichToolTipPopup* const popup = new wxRichToolTipPopup ( win,