summaryrefslogtreecommitdiff
path: root/src/metadata.cpp
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-08-20 18:11:09 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-08-20 18:11:09 +0200
commit5c7a3b43ea2f387754d182a2eb6b64cad918ed16 (patch)
tree85ab76c199d9b4cac1782bbe6ce77e4b301049b8 /src/metadata.cpp
parent29762204b911f983b05acbcc77a3363a3b66012e (diff)
downloadzcomp-5c7a3b43ea2f387754d182a2eb6b64cad918ed16.tar.gz
zcomp-5c7a3b43ea2f387754d182a2eb6b64cad918ed16.tar.bz2
Store Screens in a STL list.
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 ());
}
}