mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
On Wayland, log error for failure to set cursor
The inability to set the cursor using any of the named cursor files likely indicates an error in the system on which we are running. 'WinitPointer::set_cursor' also does not have any way of returning an error so just log the error to assist users in diagnosing the problem. Fixes: #1988.
This commit is contained in:
parent
b87757c552
commit
ceab0f8c40
1 changed files with 2 additions and 1 deletions
|
@ -109,9 +109,10 @@ impl WinitPointer {
|
|||
let serial = Some(self.latest_serial.get());
|
||||
for cursor in cursors {
|
||||
if self.pointer.set_cursor(cursor, serial).is_ok() {
|
||||
break;
|
||||
return;
|
||||
}
|
||||
}
|
||||
warn!("Failed to set cursor to {:?}", cursor_icon);
|
||||
}
|
||||
|
||||
/// Confine the pointer to a surface.
|
||||
|
|
Loading…
Add table
Reference in a new issue