X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff9bb105a0dfd89a5c2691743466494380e85505..90254df808aa4261e414ebacbb1417f87fad3bc9:/src/gtk/msgdlg.cpp?ds=sidebyside diff --git a/src/gtk/msgdlg.cpp b/src/gtk/msgdlg.cpp index 58ed5548a4..7202ba2a32 100644 --- a/src/gtk/msgdlg.cpp +++ b/src/gtk/msgdlg.cpp @@ -79,7 +79,7 @@ void wxMessageDialog::GTKCreateMsgDialog() wxString message; #if GTK_CHECK_VERSION(2, 6, 0) bool needsExtMessage = false; - if ( gtk_check_version(2, 4, 0) == NULL && !m_extendedMessage.empty() ) + if ( gtk_check_version(2, 6, 0) == NULL && !m_extendedMessage.empty() ) { message = m_message; needsExtMessage = true; @@ -137,6 +137,12 @@ void wxMessageDialog::GTKCreateMsgDialog() int wxMessageDialog::ShowModal() { + // break the mouse capture as it would interfere with modal dialog (see + // wxDialog::ShowModal) + wxWindow * const win = wxWindow::GetCapture(); + if ( win ) + win->GTKReleaseMouseAndNotify(); + if ( !m_widget ) { GTKCreateMsgDialog();