Michal Srb changed bug 1020061
What Removed Added
CC   msrb@suse.com
Assignee xorg-maintainer-bugs@forge.provo.novell.com msrb@suse.com

Comment # 12 on bug 1020061 from
Created attachment 738896 [details]
Reset animated cursor timer when sprite changes

The problem is that the new animated cursor code will only re-schedule the
timer after the previous timer ticked, or when there was no timer set. Even
when the cursor image changed, the timer would not be re-scheduled if there is
a timer set from the previous cursor image. For looped quickly animating
cursors it is probably not even visible. However, the one-time animation is
using very long delay on the last frame to prevent looping (1000 seconds in
case of "Jewel Green" cursors). So no animations at all are played in the
following 1000 seconds.

A solution is to always call `TimerSet` inside the `AnimCurDisplayCursor`. The
`TimerSet` function already checks whether there is a pending timer associated
with the handle and removes it first.


You are receiving this mail because: