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) }