Skip to content
Commit f079f436 authored by Derek Foreman's avatar Derek Foreman Committed by Simon Ser
Browse files

clients/window: Fix animated cursors



Since commit 992ee045 we create a new surface when we update the cursor
image. This broke animated cursors by discarding any existing frame
callback used for timing, and moving the setup for frame callbacks to
after the commit on the pointer surface.

To fix this we need another surface commit for the frame callbacks, but
this alone is not enough to fix the regression, as a lingering kludge
intended to fix problems when reusing the pointer surface is no longer
working as intended.

Since we no longer re-use the same surface, we can delete the old surface
on pointer exit, along with any callbacks set on it. Then a frame callback
will be recreated naturally. This lets us remove the now broken kludge
from the past and restore animated cursor functionality.

Signed-off-by: default avatarDerek Foreman <derek.foreman@collabora.com>
parent 3759ad15
Loading
Loading
Loading
Pipeline #488226 passed with stages
in 13 minutes and 49 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment