Kaydet (Commit) 9ca7bda2 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: detect real floating windows better

We use the FloatingWindow base class also for some windows that are not
independent. A good example is the hyperlink dialog.

Change-Id: I067ac0465de9ff3c8f9bc0c1a5c817a5e09d96e5
Reviewed-on: https://gerrit.libreoffice.org/40650Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst 8b85fd64
...@@ -97,7 +97,11 @@ bool isDialogWindow(vcl::Window const * pWindow) ...@@ -97,7 +97,11 @@ bool isDialogWindow(vcl::Window const * pWindow)
bool isTopWindow(vcl::Window const * pWindow) bool isTopWindow(vcl::Window const * pWindow)
{ {
WindowType eType = pWindow->GetType(); WindowType eType = pWindow->GetType();
return eType == WindowType::FLOATINGWINDOW; if (eType == WindowType::FLOATINGWINDOW)
{
return pWindow->GetStyle() & WB_SYSTEMFLOATWIN;
}
return false;
} }
vcl::Window* get_top_parent(vcl::Window* pWindow) vcl::Window* get_top_parent(vcl::Window* pWindow)
......
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