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/40650
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index 5d71327..ed5a84a 100644
--- a/vcl/source/uitest/uiobject.cxx
+++ b/vcl/source/uitest/uiobject.cxx
@@ -97,7 +97,11 @@ bool isDialogWindow(vcl::Window const * pWindow)
bool isTopWindow(vcl::Window const * pWindow)
{
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)