don't consider matching activity list sizes as ALL if size is "1"
CCBUG: 301239 REVIEW: 105195
This commit is contained in:
parent
fe2839b95b
commit
7340ac59e0
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue