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:
Emilio Moretti 2021-02-21 07:57:29 +01:00 committed by GitHub
parent e5b5cc50d5
commit 241c01219f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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