mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 07:03:15 -04:00
Fix set_cursor_icon
This commit is contained in:
@@ -169,7 +169,8 @@ impl Window {
|
||||
CursorIcon::RowResize => "row-resize",
|
||||
};
|
||||
*self.previous_pointer.borrow_mut() = text;
|
||||
self.canvas.set_attribute("cursor", text);
|
||||
self.canvas
|
||||
.set_attribute("style", &format!("cursor: {}", text));
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
||||
Reference in New Issue
Block a user