Fix set_cursor_icon

This commit is contained in:
Héctor Ramón Jiménez 2019-06-29 17:48:01 +02:00
parent ea73dac753
commit 7f2ba0ee3e

View file

@ -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]