Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/gpui/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2434,7 +2434,7 @@ impl Window {
}

/// Updates the cursor style at the platform level. This method should only be called
/// during the prepaint phase of element drawing.
/// during the paint phase of element drawing.
pub fn set_cursor_style(&mut self, style: CursorStyle, hitbox: &Hitbox) {
self.invalidator.debug_assert_paint();
self.next_frame.cursor_styles.push(CursorStyleRequest {
Expand All @@ -2445,7 +2445,7 @@ impl Window {

/// Updates the cursor style for the entire window at the platform level. A cursor
/// style using this method will have precedence over any cursor style set using
/// `set_cursor_style`. This method should only be called during the prepaint
/// `set_cursor_style`. This method should only be called during the paint
/// phase of element drawing.
pub fn set_window_cursor_style(&mut self, style: CursorStyle) {
self.invalidator.debug_assert_paint();
Expand Down
Loading