aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@code-monkey.de>2007-03-12 14:44:31 +0100
committerTilman Sauerbeck <tilman@code-monkey.de>2007-03-12 14:44:31 +0100
commitde60732aff1baefdb1be72a332fbf8ca9bd54e87 (patch)
tree5da68238ef2e2390781f467eeec78380e6cf099c
parentConstified some variables. (diff)
downloadxcman-de60732aff1baefdb1be72a332fbf8ca9bd54e87.tar.gz
xcman-de60732aff1baefdb1be72a332fbf8ca9bd54e87.tar.bz2
xcman-de60732aff1baefdb1be72a332fbf8ca9bd54e87.tar.xz
Make this loop slightly easier to read.
-rw-r--r--xcompmgr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xcompmgr.c b/xcompmgr.c
index 77dc9db..ef4259b 100644
--- a/xcompmgr.c
+++ b/xcompmgr.c
@@ -321,7 +321,7 @@ void
run_fades (Display *dpy)
{
int now = get_time_in_milliseconds();
- fade *f, *next;
+ fade *next = fades;
int steps;
Bool need_dequeue;
@@ -331,8 +331,10 @@ run_fades (Display *dpy)
if (fade_time - now > 0)
return;
steps = 1 + (now - fade_time) / fade_delta;
- for (next = fades; f = next; )
+
+ while (next)
{
+ fade *f = next;
win *w = f->w;
next = f->next;
f->cur += f->step * steps;