diff --git a/src/x11/window.cpp b/src/x11/window.cpp index 4ae7c1468b..1edf8c6604 100644 --- a/src/x11/window.cpp +++ b/src/x11/window.cpp @@ -1287,7 +1287,7 @@ void wxWindowX11::OnInternalIdle() // This calls the UI-update mechanism (querying windows for // menu/toolbar/control state information) - if (wxUpdateUIEvent::CanUpdate(this)) + if (wxUpdateUIEvent::CanUpdate((wxWindow*) this)) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); // Set the input focus if couldn't do it before