X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2259e007898a6ffa793e129845e1fa416b42e6d3..a8d9809fc0d3ac6a285bddeb6de44d334e38e011:/src/gtk/window.cpp diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index f43608af41..dfeb16b66f 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -2909,7 +2909,11 @@ bool wxWindow::DoPopupMenu( wxMenu *menu, int x, int y ) 0 //gs_timeLastClick // the time of activation ); - while (is_waiting) wxYield(); + while (is_waiting) + { + while (gtk_events_pending()) + gtk_main_iteration(); + } return TRUE; }