mirror of
https://github.com/storytold/winit.git
synced 2026-11-23 12:50:47 +01:00
Fix set_cursor_icon
This commit is contained in:
1 parent
ea73dac753
commit
7f2ba0ee3e
1 file changed
+2
-1
@@ -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