X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e348b12dcc7f994da8c2552b80d60140578a745..a1a816f8ccbcdd119aa17bcdcd7094d6bf1ceee0:/src/os2/window.cpp diff --git a/src/os2/window.cpp b/src/os2/window.cpp index e99ecaa4d2..affeabe47e 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(this)) + UpdateWindowUI(wxUPDATE_UI_FROMIDLE); } // end of wxWindowOS2::OnIdle //