]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/popupcmn.cpp
wxComboBox appearance fixes, looks fine now but doesn't really work under GTK
[wxWidgets.git] / src / common / popupcmn.cpp
index d6319df90405c9389ae4b9883b47b4f6efb22653..36382fca0ab7d8d8f8dd5eb2f7e344e0203d85e7 100644 (file)
@@ -187,10 +187,17 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
         m_child = this;
     }
 
+    // we can't capture mouse before the window is shown in wxGTL
+#ifdef __WXGTK__
+    Show();
+#endif
+
     m_child->CaptureMouse();
     m_child->PushEventHandler(new wxPopupWindowHandler(this));
 
+#ifndef __WXGTK__
     Show();
+#endif
 
     m_focus = winFocus ? winFocus : this;
     m_focus->PushEventHandler(new wxPopupFocusHandler(this));