From 241c01219f901f58ce7bdfe33a137fdf7fb714d5 Mon Sep 17 00:00:00 2001 From: Emilio Moretti Date: Sun, 21 Feb 2021 07:57:29 +0100 Subject: [PATCH] Fix wayland missing cursor. (#238) This fixes the problem with the window automatically closing itself when the mouse goes over it. --- src/os/posix/wayland.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index 4c595a4..d2ff17d 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -369,9 +369,8 @@ impl DisplayInfo { self.cursor_surface.attach(Some(&*img), 0, 0); self.cursor_surface.damage(0, 0, 32, 32); self.cursor_surface.commit(); - return Ok(()); } - Err(()) + Ok(()) } // Resizes when buffer is bigger or less