diff --git a/gmenu-dbusmenu-proxy/window.cpp b/gmenu-dbusmenu-proxy/window.cpp index fe8dffc33..101c2d73d 100644 --- a/gmenu-dbusmenu-proxy/window.cpp +++ b/gmenu-dbusmenu-proxy/window.cpp @@ -426,7 +426,7 @@ uint Window::GetLayout(int parentId, int recursionDepth, const QStringList &prop if (!m_currentMenu->hasSubscription(subscription)) { // let's serve multiple similar requests in one go once we've processed them - m_pendingGetLayouts.insertMulti(subscription, message()); + m_pendingGetLayouts.insert(subscription, message()); setDelayedReply(true); m_currentMenu->start(subscription); diff --git a/gmenu-dbusmenu-proxy/window.h b/gmenu-dbusmenu-proxy/window.h index da195464d..2aad53a39 100644 --- a/gmenu-dbusmenu-proxy/window.h +++ b/gmenu-dbusmenu-proxy/window.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include #include @@ -111,7 +112,7 @@ private: QString m_proxyObjectPath; // our object path on this proxy app - QHash m_pendingGetLayouts; + QMultiHash m_pendingGetLayouts; Menu *m_applicationMenu = nullptr; Menu *m_menuBar = nullptr; diff --git a/libtaskmanager/xwindowtasksmodel.cpp b/libtaskmanager/xwindowtasksmodel.cpp index 5f70bc065..eb7d47924 100644 --- a/libtaskmanager/xwindowtasksmodel.cpp +++ b/libtaskmanager/xwindowtasksmodel.cpp @@ -217,7 +217,7 @@ void XWindowTasksModel::Private::addWindow(WId window) // Update demands attention state for leader. if (info.hasState(NET::DemandsAttention) && windows.contains(leader)) { - transientsDemandingAttention.insertMulti(leader, window); + transientsDemandingAttention.insert(leader, window); dataChanged(leader, QVector{IsDemandingAttention}); } @@ -279,7 +279,7 @@ void XWindowTasksModel::Private::transientChanged(WId window, NET::Properties pr if (info.hasState(NET::DemandsAttention)) { if (!transientsDemandingAttention.values(leader).contains(window)) { - transientsDemandingAttention.insertMulti(leader, window); + transientsDemandingAttention.insert(leader, window); dataChanged(leader, QVector{IsDemandingAttention}); } } else if (transientsDemandingAttention.remove(window)) { @@ -297,7 +297,7 @@ void XWindowTasksModel::Private::transientChanged(WId window, NET::Properties pr if (leader != oldLeader) { transientsDemandingAttention.remove(oldLeader, window); - transientsDemandingAttention.insertMulti(leader, window); + transientsDemandingAttention.insert(leader, window); dataChanged(oldLeader, QVector{IsDemandingAttention}); dataChanged(leader, QVector{IsDemandingAttention}); }