X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36a56c6568bd29350a24f32bf5bbad0532a42a19..9691c806e6fbb08b01c9eec9998ad1e8242c7df3:/src/common/popupcmn.cpp diff --git a/src/common/popupcmn.cpp b/src/common/popupcmn.cpp index c17d528fbf..7da199a713 100644 --- a/src/common/popupcmn.cpp +++ b/src/common/popupcmn.cpp @@ -354,6 +354,7 @@ void wxPopupWindowHandler::OnLeftDown(wxMouseEvent& event) wxWindow *sbar = NULL; wxWindow *win = (wxWindow *)event.GetEventObject(); + switch ( win->HitTest(pos.x, pos.y) ) { case wxHT_WINDOW_OUTSIDE: @@ -425,6 +426,7 @@ void wxPopupFocusHandler::OnKillFocus(wxFocusEvent& event) return; win = win->GetParent(); } + m_popup->DismissAndNotify(); }