diff --git a/Cargo.lock b/Cargo.lock index 065ef458..c9594c85 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1548,17 +1548,11 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.43.0" +version = "0.44.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244" +checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows-targets", ] [[package]] @@ -1577,46 +1571,61 @@ dependencies = [ ] [[package]] -name = "windows_aarch64_gnullvm" -version = "0.42.0" +name = "windows-targets" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.42.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd" [[package]] name = "winput" diff --git a/komorebi-core/Cargo.toml b/komorebi-core/Cargo.toml index 82c5b882..803c8805 100644 --- a/komorebi-core/Cargo.toml +++ b/komorebi-core/Cargo.toml @@ -15,7 +15,7 @@ strum = { version = "0.24", features = ["derive"] } schemars = "0.8" [dependencies.windows] -version = "0.43" +version = "0.44" features = [ "Win32_Foundation", ] diff --git a/komorebi/Cargo.toml b/komorebi/Cargo.toml index 78f07ef1..41f38e07 100644 --- a/komorebi/Cargo.toml +++ b/komorebi/Cargo.toml @@ -43,7 +43,7 @@ winput = "0.2" winreg = "0.10" [dependencies.windows] -version = "0.43" +version = "0.44" features = [ "Win32_Foundation", "Win32_Graphics_Dwm", diff --git a/komorebi/src/windows_api.rs b/komorebi/src/windows_api.rs index a4a1713c..51a5812d 100644 --- a/komorebi/src/windows_api.rs +++ b/komorebi/src/windows_api.rs @@ -668,7 +668,7 @@ impl WindowsApi { pub fn system_parameters_info_w( action: SYSTEM_PARAMETERS_INFO_ACTION, ui_param: u32, - pv_param: *mut c_void, + pv_param: *const c_void, update_flags: SYSTEM_PARAMETERS_INFO_UPDATE_FLAGS, ) -> Result<()> { unsafe { SystemParametersInfoW(action, ui_param, Option::from(pv_param), update_flags) } @@ -678,12 +678,12 @@ impl WindowsApi { #[allow(dead_code)] pub fn focus_follows_mouse() -> Result { - let mut is_enabled: BOOL = unsafe { std::mem::zeroed() }; + let is_enabled: BOOL = unsafe { std::mem::zeroed() }; Self::system_parameters_info_w( SPI_GETACTIVEWINDOWTRACKING, 0, - std::ptr::addr_of_mut!(is_enabled).cast(), + std::ptr::addr_of!(is_enabled).cast(), SPIF_SENDCHANGE, )?; @@ -695,7 +695,7 @@ impl WindowsApi { Self::system_parameters_info_w( SPI_SETACTIVEWINDOWTRACKING, 0, - 1 as *mut c_void, + 1 as *const c_void, SPIF_SENDCHANGE, ) } @@ -705,7 +705,7 @@ impl WindowsApi { Self::system_parameters_info_w( SPI_SETACTIVEWINDOWTRACKING, 0, - std::ptr::null_mut::(), + std::ptr::null::(), SPIF_SENDCHANGE, ) } diff --git a/komorebic/Cargo.toml b/komorebic/Cargo.toml index d2201d45..70e15f8e 100644 --- a/komorebic/Cargo.toml +++ b/komorebic/Cargo.toml @@ -29,7 +29,7 @@ sysinfo = "0.27" uds_windows = "1" [dependencies.windows] -version = "0.43" +version = "0.44" features = [ "Win32_Foundation", "Win32_UI_WindowsAndMessaging"