X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/937013e0fd914d4c42f9f5ec98da665986b93dfa..c1bc8d9f92a3fde4e9d33213a1df46992478f369:/src/x11/window.cpp diff --git a/src/x11/window.cpp b/src/x11/window.cpp index 0c69ed36f6..b437ef79f6 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -1317,7 +1317,7 @@ void wxWindowX11::OnInternalIdle() // This calls the UI-update mechanism (querying windows for // menu/toolbar/control state information) - if (wxUpdateUIEvent::CanUpdate((wxWindow*) this) && IsShown()) + if (wxUpdateUIEvent::CanUpdate((wxWindow*) this) && IsShownOnScreen()) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); // Set the input focus if couldn't do it before