diff --git a/crates/gpui2/src/window.rs b/crates/gpui2/src/window.rs index 4f9aaa56a2dd511f15d3bc15a69610fa63349317..7ec69f4d0e55ed07eaaf381a237daa45835b8739 100644 --- a/crates/gpui2/src/window.rs +++ b/crates/gpui2/src/window.rs @@ -1314,12 +1314,17 @@ impl<'a> WindowContext<'a> { mem::swap(&mut window.rendered_frame, &mut window.next_frame); let scene = self.window.rendered_frame.scene_builder.build(); + + // Set the cursor only if we're the active window. let cursor_style = self .window .requested_cursor_style .take() .unwrap_or(CursorStyle::Arrow); - self.platform.set_cursor_style(cursor_style); + if self.is_window_active() { + self.platform.set_cursor_style(cursor_style); + } + self.window.dirty = false; scene