diff --git a/CHANGELOG.md b/CHANGELOG.md index b358fb35..865cc071 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- On Wayland and X11, fix diagonal window resize cursor orientation. - On macOS, drop the event callback before exiting. - On Android, implement `Window::request_redraw` - **Breaking:** On Web, remove the `stdweb` backend. diff --git a/src/platform_impl/linux/wayland/seat/pointer/mod.rs b/src/platform_impl/linux/wayland/seat/pointer/mod.rs index 77eaa986..54be673f 100644 --- a/src/platform_impl/linux/wayland/seat/pointer/mod.rs +++ b/src/platform_impl/linux/wayland/seat/pointer/mod.rs @@ -93,8 +93,8 @@ impl WinitPointer { CursorIcon::WResize => &["left_side"], CursorIcon::EwResize => &["h_double_arrow"], CursorIcon::NsResize => &["v_double_arrow"], - CursorIcon::NwseResize => &["bd_double_arrow", "size_bdiag"], - CursorIcon::NeswResize => &["fd_double_arrow", "size_fdiag"], + CursorIcon::NwseResize => &["bd_double_arrow", "size_fdiag"], + CursorIcon::NeswResize => &["fd_double_arrow", "size_bdiag"], CursorIcon::ColResize => &["split_h", "h_double_arrow"], CursorIcon::RowResize => &["split_v", "v_double_arrow"], CursorIcon::Text => &["text", "xterm"], diff --git a/src/platform_impl/linux/x11/util/cursor.rs b/src/platform_impl/linux/x11/util/cursor.rs index 684af49d..c6551a94 100644 --- a/src/platform_impl/linux/x11/util/cursor.rs +++ b/src/platform_impl/linux/x11/util/cursor.rs @@ -104,8 +104,8 @@ impl XConnection { CursorIcon::WResize => load(b"left_side\0"), CursorIcon::EwResize => load(b"h_double_arrow\0"), CursorIcon::NsResize => load(b"v_double_arrow\0"), - CursorIcon::NwseResize => loadn(&[b"bd_double_arrow\0", b"size_bdiag\0"]), - CursorIcon::NeswResize => loadn(&[b"fd_double_arrow\0", b"size_fdiag\0"]), + CursorIcon::NwseResize => loadn(&[b"bd_double_arrow\0", b"size_fdiag\0"]), + CursorIcon::NeswResize => loadn(&[b"fd_double_arrow\0", b"size_bdiag\0"]), CursorIcon::ColResize => loadn(&[b"split_h\0", b"h_double_arrow\0"]), CursorIcon::RowResize => loadn(&[b"split_v\0", b"v_double_arrow\0"]),