diff --git a/src/DockManager.cpp b/src/DockManager.cpp index 0ddb1cc..e1c85c3 100644 --- a/src/DockManager.cpp +++ b/src/DockManager.cpp @@ -1034,6 +1034,7 @@ void CDockManager::onApplicationFocusChanged(QWidget* focusedOld, QWidget* focus return; } std::cout << "CDockManager::onFocusChanged" << std::endl; + std::cout << "focusedNow " << focusedNow << std::endl; Q_UNUSED(focusedOld) if (!focusedNow) { diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index 059523c..cbc0f96 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -804,10 +804,17 @@ void CFloatingDockContainer::hideEvent(QHideEvent *event) d->Hiding = false; } + //============================================================================ void CFloatingDockContainer::showEvent(QShowEvent *event) { Super::showEvent(event); +#ifdef Q_OS_LINUX + if (CDockManager::testConfigFlag(CDockManager::FocusStyling)) + { + this->window()->activateWindow(); + } +#endif }