Changeset View
Changeset View
Standalone View
Standalone View
manage.cpp
Context not available. | |||||
359 | } else if (isMapped && autogrouping) { | 359 | } else if (isMapped && autogrouping) { | ||
---|---|---|---|---|---|
360 | // If the window is already mapped (Restarted KWin) add any windows that already have the | 360 | // If the window is already mapped (Restarted KWin) add any windows that already have the | ||
361 | // same geometry to the same client group. (May incorrectly handle maximized windows) | 361 | // same geometry to the same client group. (May incorrectly handle maximized windows) | ||
362 | foreach (Client *other, workspace()->clientList()) { | 362 | for (Client *other : workspace()->clientList()) { | ||
363 | if (other->maximizeMode() != MaximizeFull && | 363 | if (other->maximizeMode() != MaximizeFull && | ||
364 | geom == QRect(other->pos(), other->clientSize()) && | 364 | geom == QRect(other->pos(), other->clientSize()) && | ||
365 | desk == other->desktop() && activities() == other->activities()) { | 365 | desk == other->desktop() && activities() == other->activities()) { | ||
Context not available. | |||||
749 | // See if the window has a group ID to match with | 749 | // See if the window has a group ID to match with | ||
750 | QString wGId = rules()->checkAutogroupById(QString()); | 750 | QString wGId = rules()->checkAutogroupById(QString()); | ||
751 | if (!wGId.isEmpty()) { | 751 | if (!wGId.isEmpty()) { | ||
752 | foreach (Client *c, workspace()->clientList()) { | 752 | for (Client *c : workspace()->clientList()) { | ||
753 | if (activities() != c->activities()) | 753 | if (activities() != c->activities()) | ||
754 | continue; // don't cross activities | 754 | continue; // don't cross activities | ||
755 | if (wGId == c->rules()->checkAutogroupById(QString())) { | 755 | if (wGId == c->rules()->checkAutogroupById(QString())) { | ||
Context not available. | |||||
771 | // If we don't have an ID take a guess | 771 | // If we don't have an ID take a guess | ||
772 | if (rules()->checkAutogrouping(options->isAutogroupSimilarWindows())) { | 772 | if (rules()->checkAutogrouping(options->isAutogroupSimilarWindows())) { | ||
773 | QByteArray wRole = truncatedWindowRole(windowRole()); | 773 | QByteArray wRole = truncatedWindowRole(windowRole()); | ||
774 | foreach (Client *c, workspace()->clientList()) { | 774 | for (Client *c : workspace()->clientList()) { | ||
775 | if (desktop() != c->desktop() || activities() != c->activities()) | 775 | if (desktop() != c->desktop() || activities() != c->activities()) | ||
776 | continue; | 776 | continue; | ||
777 | QByteArray wRoleB = truncatedWindowRole(c->windowRole()); | 777 | QByteArray wRoleB = truncatedWindowRole(c->windowRole()); | ||
Context not available. |