summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index a4a0eff0..9b2626cf 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -201,14 +201,12 @@ NhekoFixupPaletteEventFilter::eventFilter(QObject *obj, QEvent *event) // reason?!? if (event->type() == QEvent::ChildAdded && obj->metaObject()->className() == QStringLiteral("QQuickRootItem")) { - QSet<QWindow *> newWindows; for (const auto window : QGuiApplication::topLevelWindows()) { - newWindows.insert(window); - if (m_postedWindows.contains(window)) + if (window->property("posted").isValid()) continue; QGuiApplication::postEvent(window, new QEvent(QEvent::ApplicationPaletteChange)); + window->setProperty("posted", true); } - m_postedWindows.swap(newWindows); } return false; }