Kaydet (Commit) 5c4fbedf authored tarafından Caolán McNamara's avatar Caolán McNamara

afl-eventtesting: send events to focus window and fallback to toplevel

otherwise we get stuck if the menubar gets activated

Change-Id: I23a613de41202fa0a542d1da6e10d190225a5f44
üst 0d79e4c0
......@@ -347,7 +347,9 @@ namespace
{
bool InjectKeyEvent(SvStream& rStream)
{
VclPtr<vcl::Window> xWin(Application::GetActiveTopWindow());
VclPtr<vcl::Window> xWin(Application::GetFocusWindow());
if (!xWin)
xWin.reset(Application::GetActiveTopWindow());
if (!xWin)
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment