Use auto where we call ensureStackingOrder(client->transients())
Preparation step for switching transients from Client to AbstractClient.
This commit is contained in:
parent
4ad749e560
commit
2da04aa26b
4 changed files with 8 additions and 8 deletions
|
@ -105,8 +105,8 @@ void Activities::toggleClientOnActivity(Client* c, const QString &activity, bool
|
|||
|
||||
//notifyWindowDesktopChanged( c, old_desktop );
|
||||
|
||||
ClientList transients_stacking_order = ws->ensureStackingOrder(c->transients());
|
||||
for (ClientList::ConstIterator it = transients_stacking_order.constBegin();
|
||||
auto transients_stacking_order = ws->ensureStackingOrder(c->transients());
|
||||
for (auto it = transients_stacking_order.constBegin();
|
||||
it != transients_stacking_order.constEnd();
|
||||
++it)
|
||||
toggleClientOnActivity(*it, activity, dont_activate);
|
||||
|
|
|
@ -1217,8 +1217,8 @@ void Client::doSetDesktop(int desktop, int was_desk)
|
|||
workspace()->updateOnAllDesktopsOfTransients(this);
|
||||
}
|
||||
|
||||
ClientList transients_stacking_order = workspace()->ensureStackingOrder(transients());
|
||||
for (ClientList::ConstIterator it = transients_stacking_order.constBegin();
|
||||
auto transients_stacking_order = workspace()->ensureStackingOrder(transients());
|
||||
for (auto it = transients_stacking_order.constBegin();
|
||||
it != transients_stacking_order.constEnd();
|
||||
++it)
|
||||
(*it)->setDesktop(desktop);
|
||||
|
|
|
@ -3411,8 +3411,8 @@ void Client::sendToScreen(int newScreen)
|
|||
if (qtMode != QuickTileNone && qtMode != quick_tile_mode)
|
||||
setQuickTileMode(qtMode, true);
|
||||
|
||||
ClientList tso = workspace()->ensureStackingOrder(transients());
|
||||
for (ClientList::ConstIterator it = tso.constBegin(), end = tso.constEnd(); it != end; ++it)
|
||||
auto tso = workspace()->ensureStackingOrder(transients());
|
||||
for (auto it = tso.constBegin(), end = tso.constEnd(); it != end; ++it)
|
||||
(*it)->sendToScreen(newScreen);
|
||||
}
|
||||
|
||||
|
|
|
@ -1144,8 +1144,8 @@ void Workspace::sendClientToDesktop(AbstractClient* c, int desk, bool dont_activ
|
|||
|
||||
if (Client *client = dynamic_cast<Client*>(c)) {
|
||||
// TODO: adjust transients for non-X11
|
||||
ClientList transients_stacking_order = ensureStackingOrder(client->transients());
|
||||
for (ClientList::ConstIterator it = transients_stacking_order.constBegin();
|
||||
auto transients_stacking_order = ensureStackingOrder(client->transients());
|
||||
for (auto it = transients_stacking_order.constBegin();
|
||||
it != transients_stacking_order.constEnd();
|
||||
++it)
|
||||
sendClientToDesktop(*it, desk, dont_activate);
|
||||
|
|
Loading…
Reference in a new issue