]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
Put OnIdle() back. Without deleting pending objects, frames that have
[wxWidgets.git] / src / os2 / window.cpp
index 99bd6f5a511ccb60901f7f142f3facdd7f9d559d..affeabe47e5588111935250d5a1448f18901c9d7 100644 (file)
@@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle(
             (void)GetEventHandler()->ProcessEvent(rEvent);
         }
     }
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 } // end of wxWindowOS2::OnIdle
 
 //
@@ -3514,7 +3515,7 @@ bool wxWindowOS2::HandleCreate(
 bool wxWindowOS2::HandleDestroy()
 {
     wxWindowDestroyEvent            vEvent((wxWindow*)this);
-
+    vEvent.SetId(GetId());
     (void)GetEventHandler()->ProcessEvent(vEvent);
 
     //