From 4962afd3f5ce0cd0853954e1d4eb6b8b33d5c25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lauzier?= Date: Fri, 18 Feb 2022 03:32:00 -0500 Subject: [PATCH] small fixes and update (#277) --- Cargo.toml | 4 ++-- src/os/posix/wayland.rs | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 99f1a0c..2b17cf8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "minifb" version = "0.20.0" -license = "MIT/Apache-2.0" +license = "MIT OR Apache-2.0" authors = ["Daniel Collin "] description = "Cross-platform window setup with optional bitmap rendering" keywords = ["windowing", "window", "framebuffer"] @@ -46,7 +46,7 @@ wayland = ["wayland-client", "wayland-protocols", "wayland-cursor", "tempfile", wayland-client = {version = "0.29", optional = true} wayland-protocols = { version = "0.29", features = ["client", "unstable_protocols"], optional = true } wayland-cursor = {version = "0.29", optional = true} -tempfile = {version = "3.2", optional = true} +tempfile = {version = "3.3", optional = true} xkb = {version = "0.2.1", optional = true} xkbcommon-sys = {version = "0.7.5", optional = true} x11-dl = {version = "2.19.1", optional = true} diff --git a/src/os/posix/wayland.rs b/src/os/posix/wayland.rs index 3ea2092..9c2a543 100644 --- a/src/os/posix/wayland.rs +++ b/src/os/posix/wayland.rs @@ -648,11 +648,8 @@ impl Window { } pub fn get_position(&self) -> (isize, isize) { - let (mut x, mut y) = (0, 0); - - unsafe { - // todo!("get_position"); - } + let (x, y) = (0, 0); + // todo!("get_position"); (x as isize, y as isize) }