diff --git a/Cargo.lock b/Cargo.lock index b41b12a8..8f7fd2a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -330,6 +330,12 @@ version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" +[[package]] +name = "atomic_float" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a" + [[package]] name = "atomicwrites" version = "0.4.2" @@ -4679,11 +4685,12 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "smithay" version = "0.5.0" -source = "git+https://github.com/smithay/smithay//?rev=657170c#657170c1c1995f13bde81ced508b47defa4af8ec" +source = "git+https://github.com/smithay/smithay//?rev=ce61c9b#ce61c9b3293b13adf03863848426f0d7c4907c3e" dependencies = [ "aliasable", "appendlist", "ash", + "atomic_float", "bitflags 2.8.0", "calloop 0.14.2", "cc", diff --git a/Cargo.toml b/Cargo.toml index dab13867..e6c8409c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -122,4 +122,4 @@ cosmic-protocols = { git = "https://github.com/pop-os//cosmic-protocols", rev = cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", rev = "ee0d46f" } [patch."https://github.com/smithay/smithay"] -smithay = { git = "https://github.com/smithay/smithay//", rev = "657170c" } +smithay = { git = "https://github.com/smithay/smithay//", rev = "ce61c9b" } diff --git a/src/xwayland.rs b/src/xwayland.rs index eba47b42..cbb4875a 100644 --- a/src/xwayland.rs +++ b/src/xwayland.rs @@ -506,7 +506,7 @@ impl Common { .get_data::() .unwrap() .compositor_state - .set_client_scale(new_scale as u32); + .set_client_scale(new_scale as f64); // update wl/xdg_outputs for output in self.shell.read().unwrap().outputs() {