diff --git a/src/abstract_client.cpp b/src/abstract_client.cpp index 6d5471b80e..3ef9321980 100644 --- a/src/abstract_client.cpp +++ b/src/abstract_client.cpp @@ -1652,8 +1652,9 @@ void AbstractClient::setupWindowManagementInterface() // Notify clients on activities changes connect(this, &AbstractClient::activitiesChanged, w, [w, this] { - const auto newActivities = m_activityList.toSet(); - const auto oldActivities = w->plasmaActivities().toSet(); + const auto newActivities = QSet(m_activityList.begin(), m_activityList.end()); + const auto oldActivitiesList = w->plasmaActivities(); + const auto oldActivities = QSet(oldActivitiesList.begin(), oldActivitiesList.end()); const auto activitiesToAdd = newActivities - oldActivities; for (const auto &activity : activitiesToAdd) {