summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vcl/source/uitest/uiobject.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx
index 5d7132787ea3..ed5a84ab5655 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)