From 11f28732dbfb7e5968c7247fe726c4aacb552a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Thu, 31 May 2012 11:11:43 +0200 Subject: [PATCH] treat "ALL" activities as all activities when setting activities (aligning it to an empty list as checked elsewhere) BUG: 300846 FIXED-IN: 4.9 REVIEW: 105113 --- client.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 046893ac51..c2437d87a5 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.size() == allActivities.size() || newActivitiesList.isEmpty() || + (newActivitiesList.count() == 1 && newActivitiesList.at(0) == "ALL")) { setOnAllActivities(true); activityList.clear(); XChangeProperty(display(), window(), atoms->activities, XA_STRING, 8,