]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/dialog.cpp
If -1 is used for width/height, use best size.
[wxWidgets.git] / src / motif / dialog.cpp
index bb4a45ea2ff1e3d739c5016a4346b9272fe78561..5fdd39cb9fdfe59a43528735d581ce51d7e1654a 100644 (file)
@@ -352,8 +352,7 @@ int wxDialog::ShowModal()
     XSync(XtDisplay((Widget) wxTheApp->GetTopLevelWidget()), FALSE);
     while (XtAppPending((XtAppContext) wxTheApp->GetAppContext()))
     {
-        // MBN: is this necessary? why?
-        // XFlush(XtDisplay((Widget) wxTheApp->GetTopLevelWidget()));
+        XFlush(XtDisplay((Widget) wxTheApp->GetTopLevelWidget()));
         XtAppNextEvent((XtAppContext) wxTheApp->GetAppContext(), &event);
 
         wxTheApp->ProcessXEvent((WXEvent*) &event);