diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 711b3a4..f35f369 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.92.0" +channel = "1.90.0" components = ["clippy", "rustfmt"] diff --git a/src/locker.rs b/src/locker.rs index d753637..1647c48 100644 --- a/src/locker.rs +++ b/src/locker.rs @@ -808,12 +808,11 @@ impl cosmic::Application for App { ); if matches!(self.state, State::Locked { .. }) { - return Task::batch([ - get_lock_surface(surface_id, output), + return Task::batch([get_lock_surface(surface_id, output).chain({ cosmic::task::message(cosmic::Action::Cosmic( cosmic::app::Action::Surface(msg), - )), - ]); + )) + })]); } } OutputEvent::Removed => {