summary refs log tree commit diff
path: root/src/MainWindow.cpp
diff options
context:
space:
mode:
authorNep Nep <nepnep91@protonmail.com>2023-12-17 21:35:01 -0300
committerGitHub <noreply@github.com>2023-12-17 21:35:01 -0300
commit7dbad2c648b4f698b8a953cf8b8d10c9dfe968fb (patch)
tree97c9db3b6919800670ddc54a20986c6744aaf2be /src/MainWindow.cpp
parentMultiple changes (diff)
parentMerge pull request #1640 from q234rty/fix-slow-new-window-plasma-6 (diff)
downloadnheko-7dbad2c648b4f698b8a953cf8b8d10c9dfe968fb.tar.xz
Merge branch 'Nheko-Reborn:master' into ignore-command
Diffstat (limited to 'src/MainWindow.cpp')
-rw-r--r--src/MainWindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index b7834cba..a4a0eff0 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -201,9 +201,14 @@ 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)) + continue; QGuiApplication::postEvent(window, new QEvent(QEvent::ApplicationPaletteChange)); } + m_postedWindows.swap(newWindows); } return false; }