-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
S - metaProject governanceProject governance
Milestone
Description
Custom cursors are still missing some refinements.
Known Issues
- On Web, correctly handle multiple windows waiting on the same cursor: Web: improve custom cursor loading #3321.
- On Wayland, account for alpha: On Wayland, custom cursors don't respect alpha #3360.
- Figure out how to prevent
CustomCursors to outlive the event loop. This is similar toWindowHandleis not sound #3317 andMonitorHandleandVideoModecan become invalid leading to panics #3258.
Improvements
- Add back
Window::set_cursor_icon()as a deprecated method: Add deprecatedWindow::set_cursor_icon()#3329. - Merge icons and cursors in one type and one method: Merge
Window::set_cursor_icon()andWindow::set_custom_cursor()#3308. - Add a cursor getter/setter on
WindowBuilder: AddWindowBuilder::with_cursor()#3319. - Add a cursor getter on
Window. - Make sure implementations check if the new cursor being set isn't the same already set.
- MacOS: MacOS: check if cursor changed before applying #3324.
- Wayland
- Web: Web: improve custom cursor loading #3321.
- Windows
- X11
- Return a
ResultatCustomCursorBuilder::build(), AFAIK only Windows needs it. - On Windows, extension method to load from a resource, like in
Icon::from_resource(). - On Web,
async fn build()extension method to wait until the cursor has successfully finished loading: Web: improve custom cursor handling and add animated cursors #3384.
Caching
- MacOS: MacOS: cache custom cursor #3291
- Wayland
- Web: Allow custom cursor caching #3276
- Windows: Windows: cache custom cursor #3293
- X11: X11: cache custom cursors #3366
Animation
- Web: Web: improve custom cursor handling and add animated cursors #3384
- Windows: support ANI files (loaded from memory or otherwise).
- MacOS: Use
NSTimer? (idea from Firefox) - X11:
XcursorAnimate
Metadata
Metadata
Assignees
Labels
S - metaProject governanceProject governance