Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Show hidden mouse cursor on window activation (#31475)
Smit Barmase5e72c2a8701b
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 4334e1336e8..4b3c46d4a67 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -1921,6 +1921,9 @@ impl Editor {blink_manager.disable(cx);}});+ if active {+ editor.show_mouse_cursor();+ }}),],tasks_update_task: None,@@ -2159,6 +2162,10 @@ impl Editor {key_context}+ fn show_mouse_cursor(&mut self) {+ self.mouse_cursor_hidden = false;+ }+pub fn hide_mouse_cursor(&mut self, origin: &HideMouseCursorOrigin) {self.mouse_cursor_hidden = match origin {HideMouseCursorOrigin::TypingAction => {