mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Add WindowBuilder::with_cursor() (#3319)
This commit is contained in:
@@ -169,6 +169,11 @@ impl Window {
|
||||
_ => (),
|
||||
};
|
||||
|
||||
match attributes.cursor {
|
||||
Cursor::Icon(icon) => window_state.set_cursor(icon),
|
||||
Cursor::Custom(cursor) => window_state.set_custom_cursor(&cursor.inner.0),
|
||||
}
|
||||
|
||||
// Activate the window when the token is passed.
|
||||
if let (Some(xdg_activation), Some(token)) = (
|
||||
xdg_activation.as_ref(),
|
||||
|
||||
Reference in New Issue
Block a user