Skip to content

Commit

Permalink
fix: increase channel size for display service
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored and mmstick committed Nov 20, 2024
1 parent 3263b6d commit 355c27c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions cosmic-settings/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Self::Message> {
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 {
Expand Down
2 changes: 1 addition & 1 deletion cosmic-settings/src/pages/display/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ impl page::Page<crate::pages::Message> 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;
};
Expand Down

0 comments on commit 355c27c

Please sign in to comment.