File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -532,16 +532,25 @@ CDockManager::CDockManager(QWidget *parent) :
532
532
#if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS)
533
533
connect (qApp, &QApplication::focusWindowChanged, [this ](QWindow* focusWindow)
534
534
{
535
- if (focusWindow)
535
+ if (! focusWindow)
536
536
{
537
- // bring the main application window that hosts the dock manager in front of
538
- // any other application
539
- this ->raise ();
537
+ return ;
538
+ }
540
539
541
- // ensure that the dragged floating window is in front of the main application window
542
- // this will also ensure that modal dialogs come to foreground
543
- focusWindow->raise ();
540
+ // bring the main application window that hosts the dock manager and all floating
541
+ // widgets in front of any other application
542
+ this ->raise ();
543
+ for (auto FloatingWidget : d->FloatingWidgets )
544
+ {
545
+ if (FloatingWidget)
546
+ {
547
+ FloatingWidget->raise ();
548
+ }
544
549
}
550
+
551
+ // ensure that the dragged floating window is in front of the main application window
552
+ // and any other floating widget - this will also ensure that modal dialogs come to foreground
553
+ focusWindow->raise ();
545
554
});
546
555
#endif
547
556
}
You can’t perform that action at this time.
0 commit comments