From 2a9916103bcf650fcb6fb9e24dc328311f01a7cf Mon Sep 17 00:00:00 2001 From: Aidan Dang Date: Sun, 1 Aug 2021 08:16:02 +0000 Subject: [PATCH] On Wayland, load "hand2" and "hand1" cursor icons for CursorIcon::Hand --- CHANGELOG.md | 1 + src/platform_impl/linux/wayland/seat/pointer/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce16fb79..b358fb35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - 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 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) diff --git a/src/platform_impl/linux/wayland/seat/pointer/mod.rs b/src/platform_impl/linux/wayland/seat/pointer/mod.rs index 7ae1f251..77eaa986 100644 --- a/src/platform_impl/linux/wayland/seat/pointer/mod.rs +++ b/src/platform_impl/linux/wayland/seat/pointer/mod.rs @@ -70,7 +70,7 @@ impl WinitPointer { CursorIcon::Copy => &["copy"], CursorIcon::Crosshair => &["crosshair"], CursorIcon::Default => &["left_ptr"], - CursorIcon::Hand => &["hand"], + CursorIcon::Hand => &["hand2", "hand1"], CursorIcon::Help => &["question_arrow"], CursorIcon::Move => &["move"], CursorIcon::Grab => &["openhand", "grab"],