summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-09-07 16:43:23 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-09-07 16:43:23 -0500
commit2b8f3033fefcfca448d895bb7e3e908d8b53e2a3 (patch)
tree62817f1c4d6d46e9707082f42c8130a32faaf7ca
parent1fff6551509b15448cdcc4b93d9fbd05961985c1 (diff)
downloadshowmouse-compiz-0.8.tar.gz
showmouse-compiz-0.8.tar.bz2
Only update rotation angle when active.compiz-0.8
-rw-r--r--showmouse.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/showmouse.c b/showmouse.c
index 8ada32d..79f04c4 100644
--- a/showmouse.c
+++ b/showmouse.c
@@ -555,8 +555,9 @@ showmousePreparePaintScreen (CompScreen *s,
glBindTexture(GL_TEXTURE_2D, 0);
}
- ss->rot = fmod (ss->rot + (((float)time / 1000.0) * 2 * M_PI *
- showmouseGetRotationSpeed (s)), 2 * M_PI);
+ if (ss->active)
+ ss->rot = fmod (ss->rot + (((float)time / 1000.0) * 2 * M_PI *
+ showmouseGetRotationSpeed (s)), 2 * M_PI);
if (ss->ps && ss->ps->active)
{