diff --git a/client.cpp b/client.cpp index c63af150a1..ec88d5ec44 100644 --- a/client.cpp +++ b/client.cpp @@ -1630,7 +1630,8 @@ void Client::setOnActivities(QStringList newActivitiesList) newActivitiesList = joinedActivitiesList.split(',', QString::SkipEmptyParts); QStringList allActivities = workspace()->activityList(); - if (newActivitiesList.size() == allActivities.size() || newActivitiesList.isEmpty() || + if ( newActivitiesList.isEmpty() || + (newActivitiesList.count() > 1 && newActivitiesList.count() == allActivities.count()) || (newActivitiesList.count() == 1 && newActivitiesList.at(0) == "ALL")) { activityList.clear(); XChangeProperty(display(), window(), atoms->activities, XA_STRING, 8,