chore: update dependencies

This commit is contained in:
Vukašin Vojinović 2025-12-09 19:50:02 +01:00 committed by Michael Murphy
parent db6fbfbce7
commit 5fbbf4ba37
5 changed files with 845 additions and 653 deletions

View file

@ -23,10 +23,13 @@ use cosmic::{
cctk,
iced::{
self,
futures::{FutureExt, SinkExt, executor::block_on},
futures::{
FutureExt, SinkExt,
channel::mpsc,
executor::{ThreadPool, block_on},
},
},
};
use futures_channel::mpsc;
use std::{cell::RefCell, collections::HashMap, sync::Arc, thread};
mod buffer;
@ -63,7 +66,7 @@ pub struct AppData {
captures: RefCell<HashMap<CaptureSource, Arc<Capture>>>,
dmabuf_feedback: Option<DmabufFeedback>,
gbm_devices: GbmDevices,
thread_pool: futures_executor::ThreadPool,
thread_pool: ThreadPool,
vulkan: Option<vulkan::Vulkan>,
}
@ -278,10 +281,7 @@ fn start(conn: Connection) -> mpsc::Receiver<Event> {
thread::spawn(move || {
// TODO: The `calloop` executor doesn't seem to be working properly, so
// spawn an executor using one additional thread.
let thread_pool = futures_executor::ThreadPool::builder()
.pool_size(1)
.create()
.unwrap();
let thread_pool = ThreadPool::builder().pool_size(1).create().unwrap();
let registry_state = RegistryState::new(&globals);
let mut app_data = AppData {

View file

@ -3,7 +3,7 @@ use cosmic::{
self,
screencopy::{
CaptureFrame, CaptureOptions, CaptureSession, CaptureSource, FailureReason, Formats,
Frame, Rect, ScreencopyFrameData, ScreencopyFrameDataExt, ScreencopyHandler,
Frame, ScreencopyFrameData, ScreencopyFrameDataExt, ScreencopyHandler,
ScreencopySessionData, ScreencopySessionDataExt, ScreencopyState,
},
wayland_client::{Connection, QueueHandle, WEnum},

View file

@ -19,7 +19,7 @@ use cosmic::{
widget::{self, Widget},
};
use cosmic_comp_config::workspace::WorkspaceLayout;
use std::collections::{HashMap, HashSet};
use std::collections::HashSet;
use crate::{
App, LayerSurface, Msg, Toplevel, Workspace,
@ -287,12 +287,9 @@ fn workspace_item(
let workspace_footer = row![
widget::horizontal_space().width(Length::Fixed(32.0)),
widget::text::body(fl!(
"workspace",
HashMap::from([("number", &workspace.info.name)])
))
.apply(widget::container)
.center_x(Length::Fill),
widget::text::body(fl!("workspace", number = workspace.info.name.as_str()))
.apply(widget::container)
.center_x(Length::Fill),
pin_button(workspace),
];