Event loop and idle events improvements for wxQt See https://github.com/wxWidgets/wxWidgets/pull/1171