Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom cursor tracking issue #3306

Open
13 of 25 tasks
daxpedda opened this issue Dec 24, 2023 · 2 comments
Open
13 of 25 tasks

Custom cursor tracking issue #3306

daxpedda opened this issue Dec 24, 2023 · 2 comments
Labels
S - meta Project governance

Comments

@daxpedda
Copy link
Member

daxpedda commented Dec 24, 2023

Custom cursors are still missing some refinements.

Known Issues

Improvements

Caching

Animation

@kchibisov
Copy link
Member

On Wayland you animate the cursor yourself and you generally supply the Xcursor formatted cursor.

So you should have a bunch of frames and delays between the frames.

@kchibisov
Copy link
Member

That's how it looks.

https://www.x.org/releases/X11R7.7/doc/man/man3/Xcursor.3.xhtml

So basically the custom cursor is

struct CustomCursor {
    hotspot_x: i16,
    hotspot_y: i16,
    width: i16,
    height: i16,
    delay: Duration,
    images: Vec<RGBA>,
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S - meta Project governance
Development

No branches or pull requests

2 participants