]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/window.cpp
release update region as soon as we finished painting the window instead of keeping...
[wxWidgets.git] / src / x11 / window.cpp
index cdcd39a1b0b4e2f6096da662bca833e137476d27..dbd6b97cff2dc9d22a5c4a4263a306fdf2f9aed6 100644 (file)
@@ -1312,7 +1312,7 @@ void wxWindowX11::OnInternalIdle()
 
     // This calls the UI-update mechanism (querying windows for
     // menu/toolbar/control state information)
-    if (wxUpdateUIEvent::CanUpdate((wxWindow*) this))
+    if (wxUpdateUIEvent::CanUpdate((wxWindow*) this) && IsShown())
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 
     // Set the input focus if couldn't do it before