diff --git a/Cargo.lock b/Cargo.lock index b727c50..7ab2c4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3668,7 +3668,7 @@ dependencies = [ [[package]] name = "winri" -version = "0.3.1" +version = "0.3.2" dependencies = [ "anyhow", "dirs", diff --git a/Cargo.toml b/Cargo.toml index ed587b7..6ac98e5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,13 +1,13 @@ [package] name = "winri" description = "A window scrolling tiler for Windows 11" -version = "0.3.1" +version = "0.3.2" edition = "2024" license = "MIT" [dependencies] anyhow = "1" -windows-strings = "0" +windows-strings = "0.5" log = "0" log4rs = "1.4" rdev = { version = "0", features = ["unstable_grab"] } diff --git a/src/scroll_tiler.rs b/src/scroll_tiler.rs index 9399a8c..4b646e6 100644 --- a/src/scroll_tiler.rs +++ b/src/scroll_tiler.rs @@ -153,7 +153,7 @@ impl ScrollTiler { pub fn set_current_window_halfscreen(&mut self) { if let Some(focus_index) = self.focus_index() { let screen_width = self.screen_size.width(); - self.windows[focus_index].width = self.padding.mul_add(-2.0, screen_width / 2.0); + self.windows[focus_index].request_width(self.padding.mul_add(-2.0, screen_width / 2.0)); } }