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
This commit is contained in:
Thomas Lübking 2012-05-31 11:11:43 +02:00
parent e999536c83
commit 11f28732db

View file

@ -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,