Add a comment regarding QTBUG-102430

This commit is contained in:
Sergio Martins
2022-06-19 12:47:11 +01:00
parent 6da693c5da
commit e763cb138a

View File

@@ -149,6 +149,7 @@ bool FloatingWindow_qtwidgets::eventFilter(QObject *, QEvent *ev)
// QWidget::windowState() is not reliable as it's emitted both for the spontaneous (async) event and non-spontaneous (sync)
// The sync one being useless, as the window manager can still have the old state.
// Only emit windowStateChanged once the window manager tells us the state has actually changed
// See also QTBUG-102430
if (ev->spontaneous())
Q_EMIT d->m_controller->windowStateChanged();
}