]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
renamed wxScrollHelper::GetRect() to GetScrollRect() to avoid conflicts with wxWindow...
[wxWidgets.git] / src / motif / window.cpp
index abf0b434a0a2c3d5a191021972ca0096499bcd4b..268429955291286c8d8dfbe28553a227b412f12e 100644 (file)
@@ -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();
 }
 
 // ----------------------------------------------------------------------------