]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/dialog.cpp
Applied patch [ 735304 ] wxDisplay::ChangeMode - does not resize full-screen windows
[wxWidgets.git] / src / os2 / dialog.cpp
index eb635379c9397889fc060f65593ee8d60ef6634a..1ab046a28ea5e0e69c05b39b52afe9980a6fd1d1 100644 (file)
@@ -206,6 +206,15 @@ void wxDialog::DoShowModal()
     //
     ::WinProcessDlg((HWND)GetHwnd());
 
+    //
+    // Before entering the modal loop, reset the "is in OnIdle()" flag (see
+    // comment in app.cpp)
+    //
+    extern bool                     gbInOnIdle;
+    bool                            bWasInOnIdle = gbInOnIdle;
+
+    gbInOnIdle = FALSE;
+
     //
     // Enter the modal loop
     //
@@ -221,6 +230,7 @@ void wxDialog::DoShowModal()
         // a message came or no more idle processing to do
         wxTheApp->DoMessage();
     }
+    gbInOnIdle = bWasInOnIdle;
 
     //
     // Snd restore focus