Optimized update events by only sending them to visible windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user