summaryrefslogtreecommitdiff
path: root/src/metadata.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/metadata.cpp')
-rw-r--r--src/metadata.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/metadata.cpp b/src/metadata.cpp
index bdcd37a..c9f319f 100644
--- a/src/metadata.cpp
+++ b/src/metadata.cpp
@@ -392,9 +392,7 @@ initKeyValue (CompDisplay *d,
if (state & CompAction::StateAutoGrab)
{
- CompScreen *s;
-
- for (s = d->screens (); s; s = s->next)
+ foreach (CompScreen *s, d->screens ())
s->addAction (&v.action ());
}
}
@@ -431,9 +429,7 @@ initButtonValue (CompDisplay *d,
if (state & CompAction::StateAutoGrab)
{
- CompScreen *s;
-
- for (s = d->screens (); s; s = s->next)
+ foreach (CompScreen *s, d->screens ())
s->addAction (&v.action ());
}
}
@@ -476,9 +472,7 @@ initEdgeValue (CompDisplay *d,
if (state & CompAction::StateAutoGrab)
{
- CompScreen *s;
-
- for (s = d->screens (); s; s = s->next)
+ foreach (CompScreen *s, d->screens ())
s->addAction (&v.action ());
}
}