Changeset View
Changeset View
Standalone View
Standalone View
group.cpp
Show First 20 Lines • Show All 833 Lines • ▼ Show 20 Line(s) | 832 | if (in_group != new_group) { | |||
---|---|---|---|---|---|
834 | in_group->addMember(this); | 834 | in_group->addMember(this); | ||
835 | } | 835 | } | ||
836 | } | 836 | } | ||
837 | } | 837 | } | ||
838 | if (in_group != old_group || force) { | 838 | if (in_group != old_group || force) { | ||
839 | for (auto it = transients().constBegin(); | 839 | for (auto it = transients().constBegin(); | ||
840 | it != transients().constEnd(); | 840 | it != transients().constEnd(); | ||
841 | ) { | 841 | ) { | ||
842 | Client *c = dynamic_cast<Client *>(*it); | 842 | auto *c = *it; | ||
843 | if (!c) { | | |||
844 | ++it; | | |||
845 | continue; | | |||
846 | } | | |||
847 | // group transients in the old group are no longer transient for it | 843 | // group transients in the old group are no longer transient for it | ||
848 | if (c->groupTransient() && c->group() != group()) { | 844 | if (c->groupTransient() && c->group() != group()) { | ||
849 | removeTransientFromList(c); | 845 | removeTransientFromList(c); | ||
850 | it = transients().constBegin(); // restart, just in case something more has changed with the list | 846 | it = transients().constBegin(); // restart, just in case something more has changed with the list | ||
851 | } else | 847 | } else | ||
852 | ++it; | 848 | ++it; | ||
853 | } | 849 | } | ||
854 | if (groupTransient()) { | 850 | if (groupTransient()) { | ||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |