summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2007-12-23 03:41:35 +0100
committerKristian Lyngstol <kristian@windu.lyngstol.net>2007-12-23 03:41:35 +0100
commit36e34920a3fac42c42968d9a209ceec3f457103b (patch)
tree089c1eac09a752a98c86e999e01216546035f0c8
parent6d9eca59e8c1c8d90eba061e6a93180479179ac0 (diff)
downloadshelf-36e34920a3fac42c42968d9a209ceec3f457103b.tar.gz
shelf-36e34920a3fac42c42968d9a209ceec3f457103b.tar.bz2
Smoother end of animation
-rw-r--r--shelf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shelf.c b/shelf.c
index 1638022..11122c2 100644
--- a/shelf.c
+++ b/shelf.c
@@ -89,8 +89,8 @@ shelfPreparePaintScreen (CompScreen *s,
steps = (float)msSinceLastPaint / (float)shelfGetAnimtime(s->display);
- if (steps < 0.001)
- steps = 0.001;
+ if (steps < 0.005)
+ steps = 0.005;
for (w = s->windows; w; w = w->next)
((shelfWindow *)w->base.privates[ss->windowPrivateIndex].ptr)->steps = steps;
@@ -117,6 +117,7 @@ shelfScaleWindow (CompWindow *w, float scale)
shelfShapeInput (w);
damageScreen (w->screen);
}
+
/* Binding for toggle mode.
* Toggles through three preset scale levels,
* currently hard coded to 1.0f (no scale), 0.5f and 0.25f.