Skip to content

Commit 8c6bf04

Browse files
committed
set_mouse_cursor self set to mut to follow the x11 impl
1 parent 4fb764b commit 8c6bf04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/win/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ impl Window<'_> {
760760
}
761761
}
762762

763-
pub fn set_mouse_cursor(&self, cursor: MouseCursor) {
763+
pub fn set_mouse_cursor(&mut self, cursor: MouseCursor) {
764764
//@TODO: Implement
765765
}
766766

src/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl<'a> Window<'a> {
117117
}
118118

119119
/// Set the cursor to the given cursor type
120-
pub fn set_mouse_cursor(&self, cursor: MouseCursor) {
120+
pub fn set_mouse_cursor(&mut self, cursor: MouseCursor) {
121121
self.window.set_mouse_cursor(cursor);
122122
}
123123

0 commit comments

Comments
 (0)