Add a comment regarding QTBUG-102430
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user