From 01e3574ea28ba3d21615dedb5df9d9954f887166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 17 Nov 2002 23:23:11 +0000 Subject: [PATCH] ugly 'fix' for wxHtmlHelpFrame's misbehviour under wxGTK git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/html/helpfrm.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/html/helpfrm.cpp b/src/html/helpfrm.cpp index ab2a8df644..92f11379b1 100644 --- a/src/html/helpfrm.cpp +++ b/src/html/helpfrm.cpp @@ -1125,8 +1125,12 @@ void wxHtmlHelpFrame::OnActivate(wxActivateEvent& event) { // This saves one mouse click when using the // wxHTML for context sensitive help systems +#ifndef __WXGTK__ + // NB: wxActivateEvent is a bit broken in wxGTK + // and is sometimes sent when it should not be if (event.GetActive() && m_HtmlWin) m_HtmlWin->SetFocus(); +#endif event.Skip(); }