]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/window.cpp
Fix various minor PS issues
[wxWidgets.git] / src / mgl / window.cpp
index 85f2abeee3d5417af7718dcfcae3321ec0e0cf1b..caa7490178dc9b7e7acb45a9cae060d6c3f4f834 100644 (file)
@@ -1225,6 +1225,6 @@ wxWindow* wxFindWindowAtPoint(const wxPoint& pt)
 
 void wxWindowMGL::OnInternalIdle()
 {
-    if (wxUpdateUIEvent::CanUpdate(this))
+    if (wxUpdateUIEvent::CanUpdate(this) && IsShown())
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }