refactor: use calloop channel

This commit is contained in:
Ashley Wulber 2022-06-23 12:15:08 -04:00
parent 8e9d7a1e91
commit 83edc4f695
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
5 changed files with 60 additions and 63 deletions

View file

@ -13,6 +13,7 @@ use tokio::sync::mpsc;
use utils::{Activate, WorkspaceEvent};
use wayland::State;
use window::CosmicWorkspacesWindow;
use calloop::channel::SyncSender;
mod localize;
mod utils;
@ -24,7 +25,7 @@ mod workspace_list;
mod workspace_object;
const ID: &str = "com.system76.CosmicAppletWorkspaces";
static TX: OnceCell<mpsc::Sender<WorkspaceEvent>> = OnceCell::new();
static TX: OnceCell<SyncSender<WorkspaceEvent>> = OnceCell::new();
pub fn localize() {
let localizer = crate::localize::localizer();