]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/window.cpp
Added PNM image handler
[wxWidgets.git] / src / gtk / window.cpp
index f43608af41bfad97df510db175348d810796db9f..dfeb16b66f26727c2c9799e9d2032887330fc835 100644 (file)
@@ -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;
 }