]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for tip disappearing immediately under MSW
authorJulian Smart <julian@anthemion.co.uk>
Thu, 22 Mar 2001 11:17:25 +0000 (11:17 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 22 Mar 2001 11:17:25 +0000 (11:17 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/tipwin.cpp

index f712aed83f07e4a0ae244c84c305fe8e6d6cd035..570d632273eddb80e976f623ea613cf3cfd2e293 100644 (file)
@@ -140,7 +140,12 @@ void wxTipWindow::OnActivate(wxActivateEvent& event)
 
 void wxTipWindow::OnKillFocus(wxFocusEvent& event)
 {
+    // Under Windows at least, we will get this immediately
+    // because when the view window is focussed, the
+    // tip window goes out of focus.
+#ifdef __WXGTK__
     Close();
+#endif
 }
 
 // ----------------------------------------------------------------------------