Make wxSetInputFocusToXWindow a member instead of free function

Also add a couple of workarounds for problems when using Xvfb.

See https://github.com/wxWidgets/wxWidgets/pull/1845
This commit is contained in:
ali kettab
2020-05-15 22:25:40 +01:00
committed by Vadim Zeitlin
parent 609f77ff55
commit a3e264e8a3
3 changed files with 63 additions and 20 deletions

View File

@@ -584,6 +584,10 @@ void MenuTestCase::Events()
// Invoke the accelerator.
m_frame->Show();
m_frame->SetFocus();
#ifdef __WXGTK__
// Without this, test fails when run with other tests under Xvfb.
m_frame->Raise();
#endif
wxYield();
wxUIActionSimulator sim;