X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fd899b671b25d3671e3fceb1b59f8edd9113af9..6c44548a8f39808a91fe363327b16b172891dcb9:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 99bd6f5a51..7903c10e6c 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle( (void)GetEventHandler()->ProcessEvent(rEvent); } } - UpdateWindowUI(); + if (wxUpdateUIEvent::CanUpdate()) + UpdateWindowUI(); } // 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); //