On Wayland, load "hand2" and "hand1" cursor icons for CursorIcon::Hand

This commit is contained in:
Aidan Dang 2021-08-01 08:16:02 +00:00 committed by GitHub
parent 63ad47a7bf
commit 2a9916103b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- Added `Window::focus_window`to bring the window to the front and set input focus. - Added `Window::focus_window`to bring the window to the front and set input focus.
- On Wayland and X11, implement `is_maximized` method on `Window`. - On Wayland and X11, implement `is_maximized` method on `Window`.
- On macOS, fix issue where `ReceivedCharacter` was not being emitted during some key repeat events. - On macOS, fix issue where `ReceivedCharacter` was not being emitted during some key repeat events.
- On Wayland, load cursor icons `hand2` and `hand1` for `CursorIcon::Hand`.
# 0.25.0 (2021-05-15) # 0.25.0 (2021-05-15)

View file

@ -70,7 +70,7 @@ impl WinitPointer {
CursorIcon::Copy => &["copy"], CursorIcon::Copy => &["copy"],
CursorIcon::Crosshair => &["crosshair"], CursorIcon::Crosshair => &["crosshair"],
CursorIcon::Default => &["left_ptr"], CursorIcon::Default => &["left_ptr"],
CursorIcon::Hand => &["hand"], CursorIcon::Hand => &["hand2", "hand1"],
CursorIcon::Help => &["question_arrow"], CursorIcon::Help => &["question_arrow"],
CursorIcon::Move => &["move"], CursorIcon::Move => &["move"],
CursorIcon::Grab => &["openhand", "grab"], CursorIcon::Grab => &["openhand", "grab"],