Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui: Restore mouse cursor on window deactivation (#55155)

Agus Zubiagac01671eac113
diff --git a/crates/gpui/src/window.rs b/crates/gpui/src/window.rs
index 99374fd042e..ad8bb0f735d 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();