X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/148b44a1e7d050307bba3f10fd4520aa514e196f..d5d58a93c327198b8d1dd781c7d07626d2b2062a:/src/motif/window.cpp diff --git a/src/motif/window.cpp b/src/motif/window.cpp index abf0b434a0..2684299552 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -1687,7 +1687,8 @@ void wxWindow::OnIdle(wxIdleEvent& WXUNUSED(event)) { // This calls the UI-update mechanism (querying windows for // menu/toolbar/control state information) - UpdateWindowUI(); + if (wxUpdateUIEvent::CanUpdate()) + UpdateWindowUI(); } // ----------------------------------------------------------------------------