Windows: cache custom cursors (#3293)
This commit is contained in:
parent
37b6243289
commit
787b2d7362
3 changed files with 35 additions and 25 deletions
|
|
@ -407,10 +407,10 @@ impl Window {
|
|||
});
|
||||
}
|
||||
Cursor::Custom(cursor) => {
|
||||
let new_cursor = match WinCursor::new(&cursor.inner.0) {
|
||||
Ok(cursor) => cursor,
|
||||
Err(err) => {
|
||||
warn!("Failed to create custom cursor: {err}");
|
||||
let new_cursor = match cursor.inner {
|
||||
WinCursor::Cursor(cursor) => cursor,
|
||||
WinCursor::Failed => {
|
||||
warn!("Requested to apply failed cursor");
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue