mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
Fix wayland missing cursor. (#238)
This fixes the problem with the window automatically closing itself when the mouse goes over it.
This commit is contained in:
parent
e5b5cc50d5
commit
241c01219f
|
@ -369,9 +369,8 @@ impl DisplayInfo {
|
||||||
self.cursor_surface.attach(Some(&*img), 0, 0);
|
self.cursor_surface.attach(Some(&*img), 0, 0);
|
||||||
self.cursor_surface.damage(0, 0, 32, 32);
|
self.cursor_surface.damage(0, 0, 32, 32);
|
||||||
self.cursor_surface.commit();
|
self.cursor_surface.commit();
|
||||||
return Ok(());
|
|
||||||
}
|
}
|
||||||
Err(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Resizes when buffer is bigger or less
|
// Resizes when buffer is bigger or less
|
||||||
|
|
Loading…
Reference in a new issue