Summary: | Animated mouse cursors stop working | ||||||
---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Max Staudt <bugzilla-fdo-max> | ||||
Component: | Server/General | Assignee: | Xorg Project Team <xorg-team> | ||||
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> | ||||
Severity: | normal | ||||||
Priority: | medium | CC: | michalsrb, sndirsch | ||||
Version: | git | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
i915 platform: | i915 features: | ||||||
Attachments: |
|
Description
Max Staudt
2017-02-13 16:45:09 UTC
Created attachment 133887 [details] [review] 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. Please add Bugzilla: https://bugs.freedesktop.org/99798 to the commit log and send the patch to the xorg-devel mailing list for review. Ok, sent to xorg-devel. Seems meanwhile this has been fixed differently. https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=26841b2c9ea03fda8b2d0da254e0344fd2a3afce https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=354c48304d27f75b7c33c03a0adb050c37788ccf https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=693f0e21d55d6e9fe792d91e76e4168aa813db71 https://cgit.freedesktop.org/xorg/xserver/commit/?h=server-1.19-branch&id=5e83ebd76738455c443a66024b0b5eb92930b36c Thanks for the help everyone! If this has been fixed, can we close it? Hmm, let's close it for now, and anyone objecting can re-open it ;) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.