rust-windowing / winit

Window handling library in pure Rust
https://docs.rs/winit/
Apache License 2.0
4.76k stars 892 forks source link

Various cursors cannot be displayed on macOS #3724

Open atbentley opened 3 months ago

atbentley commented 3 months ago

Description

Running the window example and pressing CTRL+C to cycle through the available cursors reveals that not all cursors can be displayed.

When a cursor cannot be displayed the following warning is emitted and the cursor reverts to the default cursor.

WARN winit::platform_impl::platform::cursor: cursor `_windowResizeSouthWestCursor` appears to be invalid

Here is the log of relevant events from the window example:

INFO window: Setting cursor to "Wait"
WARN winit::platform_impl::platform::cursor: cursor `busyButClickableCursor` appears to be invalid
INFO window: Setting cursor to "Help"
WARN winit::platform_impl::platform::cursor: cursor `_helpCursor` appears to be invalid
INFO window: Setting cursor to "Progress"
WARN winit::platform_impl::platform::cursor: cursor `busyButClickableCursor` appears to be invalid
INFO window: Setting cursor to "ZoomIn"
WARN winit::platform_impl::platform::cursor: cursor `_zoomInCursor` appears to be invalid
INFO window: Setting cursor to "ZoomOut"
WARN winit::platform_impl::platform::cursor: cursor `_zoomOutCursor` appears to be invalid
INFO window: Setting cursor to "NeResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeNorthEastCursor` appears to be invalid
INFO window: Setting cursor to "NwResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeNorthWestCursor` appears to be invalid
INFO window: Setting cursor to "SeResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeSouthEastCursor` appears to be invalid
INFO window: Setting cursor to "SwResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeSouthWestCursor` appears to be invalid
INFO window: Setting cursor to "NeswResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeNorthEastSouthWestCursor` appears to be invalid
INFO window: Setting cursor to "NwseResize"
WARN winit::platform_impl::platform::cursor: cursor `_windowResizeNorthWestSouthEastCursor` appears to be invalid

macOS version

ProductName:        macOS
ProductVersion:     14.1.1
BuildVersion:       23B81

Winit version

0.30.0

killercup commented 3 months ago

Can reproduce on macOS 14.4.1 and a checkout of 3a624e0f529d42b046967c53f47969320202bc04 -- RUST_LOG=warn cargo run --example window gives warnings for these cursors: