diff --git a/src/FloatingDockContainer.cpp b/src/FloatingDockContainer.cpp index 80f39d3..9d19d3b 100644 --- a/src/FloatingDockContainer.cpp +++ b/src/FloatingDockContainer.cpp @@ -1337,6 +1337,19 @@ bool CFloatingDockContainer::hasNativeTitleBar() } #endif + +//============================================================================ +bool CFloatingDockContainer::event(QEvent *e) +{ + qDebug() << "CFloatingDockContainer::event: " << e; + if (e->type() == QEvent::WindowStateChange) + { + QWindowStateChangeEvent* ev = static_cast(e); + qDebug() << "WindowStateChange " << ev->oldState() << " -> " << windowState(); + qDebug() << "isActiveWindow " << isActiveWindow(); + } + return Super::event(e); +} } // namespace ads //--------------------------------------------------------------------------- diff --git a/src/FloatingDockContainer.h b/src/FloatingDockContainer.h index c640e54..c358c9c 100644 --- a/src/FloatingDockContainer.h +++ b/src/FloatingDockContainer.h @@ -299,6 +299,7 @@ public: bool hasNativeTitleBar(); #endif + virtual bool event(QEvent *e) override; }; // class FloatingDockContainer } // namespace ads