diff --git a/Cargo.lock b/Cargo.lock index c9ca5b43..8537900b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4009,9 +4009,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.12" +version = "1.0.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534" +checksum = "540654e97a3f4470a492cd30ff187bc95d89557a903a2bbf112e2fae98104ef2" [[package]] name = "jni" diff --git a/cosmic-settings/src/app.rs b/cosmic-settings/src/app.rs index c725d2f8..affa96ea 100644 --- a/cosmic-settings/src/app.rs +++ b/cosmic-settings/src/app.rs @@ -789,16 +789,6 @@ impl cosmic::Application for SettingsApp { .dialog(self.active_page) .map(|e| e.map(Message::PageMessage)) } - - fn on_close_requested(&self, id: window::Id) -> Option { - if id == self.core.main_window_id().unwrap() { - std::thread::spawn(|| { - std::thread::sleep(Duration::from_millis(100)); - std::process::exit(0); - }); - } - None - } } impl SettingsApp { diff --git a/cosmic-settings/src/pages/display/mod.rs b/cosmic-settings/src/pages/display/mod.rs index 0d169929..90b116ff 100644 --- a/cosmic-settings/src/pages/display/mod.rs +++ b/cosmic-settings/src/pages/display/mod.rs @@ -249,7 +249,7 @@ impl page::Page for Page { let runtime = tokio::runtime::Handle::current(); self.background_service = Some(tokio::task::spawn_blocking(move || { runtime.block_on(async move { - let (tx, mut rx) = tachyonix::channel(5); + let (tx, mut rx) = tachyonix::channel(200); let Ok((mut context, mut event_queue)) = cosmic_randr::connect(tx) else { return; };