From 246cbfb0eddc46d8376e9f4f0273d297f0ef9ea7 Mon Sep 17 00:00:00 2001 From: Agus Zubiaga Date: Wed, 29 Apr 2026 11:31:24 +0200 Subject: [PATCH] gpui: Restore mouse cursor on window deactivation (#55155) Self-Review Checklist: - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A --- crates/gpui/src/window.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs index 99374fd042..ad8bb0f735 100644 --- a/crates/gpui/src/window.rs +++ b/crates/gpui/src/window.rs @@ -1457,6 +1457,10 @@ impl Window { move |active| { handle .update(&mut cx, |_, window, cx| { + if !active { + cx.platform.set_cursor_style(CursorStyle::Arrow); + } + window.active.set(active); window.modifiers = window.platform_window.modifiers(); window.capslock = window.platform_window.capslock();