projects
/
dana
/
xcompmgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa689d8
)
Make this loop slightly easier to read.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 12 Mar 2007 13:44:31 +0000
(14:44 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 12 Mar 2007 13:44:31 +0000
(14:44 +0100)
xcompmgr.c
patch
|
blob
|
history
diff --git
a/xcompmgr.c
b/xcompmgr.c
index 77dc9db32c360f4a8ee7338229ab142ef533e6b5..ef4259b31cf6481153a25670ff702879484d7961 100644
(file)
--- 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;