From e9d94748e84aee680e456dc0cc3a65230f257fdb Mon Sep 17 00:00:00 2001 From: Conashimi <33379473+momota1029@users.noreply.github.com> Date: Sun, 25 Jan 2026 01:30:06 +0900 Subject: [PATCH] gpui: Map diagonal resize cursor styles on Windows (#47477) - Adds missing diagonal resize cursor mappings (NWSE/NESW) on Windows. - Fixes `CursorStyle::ResizeUpLeftDownRight` and `ResizeUpRightDownLeft` falling back to Arrow. Release Notes: - N/A --- crates/gpui/src/platform/windows/util.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/gpui/src/platform/windows/util.rs b/crates/gpui/src/platform/windows/util.rs index af71dfe4a1f89246ccfceb6fc536acd199477e88..e5f037ad760d36a679c5ddf858c05de8933758f5 100644 --- a/crates/gpui/src/platform/windows/util.rs +++ b/crates/gpui/src/platform/windows/util.rs @@ -117,6 +117,8 @@ pub(crate) fn load_cursor(style: CursorStyle) -> Option { static HAND: OnceLock = OnceLock::new(); static SIZEWE: OnceLock = OnceLock::new(); static SIZENS: OnceLock = OnceLock::new(); + static SIZENWSE: OnceLock = OnceLock::new(); + static SIZENESW: OnceLock = OnceLock::new(); static NO: OnceLock = OnceLock::new(); let (lock, name) = match style { CursorStyle::IBeam | CursorStyle::IBeamCursorForVerticalLayout => (&IBEAM, IDC_IBEAM), @@ -130,6 +132,8 @@ pub(crate) fn load_cursor(style: CursorStyle) -> Option { | CursorStyle::ResizeDown | CursorStyle::ResizeUpDown | CursorStyle::ResizeRow => (&SIZENS, IDC_SIZENS), + CursorStyle::ResizeUpLeftDownRight => (&SIZENWSE, IDC_SIZENWSE), + CursorStyle::ResizeUpRightDownLeft => (&SIZENESW, IDC_SIZENESW), CursorStyle::OperationNotAllowed => (&NO, IDC_NO), CursorStyle::None => return None, _ => (&ARROW, IDC_ARROW),