Format imports
This commit is contained in:
parent
76daf6e980
commit
ee1d54a12b
8 changed files with 42 additions and 34 deletions
|
|
@ -187,7 +187,7 @@ impl AppData {
|
|||
}
|
||||
}
|
||||
|
||||
fn start(conn: Connection) -> mpsc::Receiver<Event> {
|
||||
fn start(_conn: Connection) -> mpsc::Receiver<Event> {
|
||||
let (sender, receiver) = mpsc::channel(20);
|
||||
thread::spawn(move || {
|
||||
let mut event_loop = calloop::EventLoop::try_new().unwrap();
|
||||
|
|
|
|||
|
|
@ -5,14 +5,14 @@ use cctk::{
|
|||
Connection, Dispatch, QueueHandle,
|
||||
},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
use cosmic::iced_sctk::subsurface_widget::{BufferSource, Dmabuf, Plane, Shmbuf};
|
||||
use rustix::{io::Errno, shm::ShmOFlags};
|
||||
use cosmic::{
|
||||
cctk,
|
||||
iced_sctk::subsurface_widget::{BufferSource, Dmabuf, Plane, Shmbuf},
|
||||
};
|
||||
use std::{
|
||||
os::fd::{AsFd, OwnedFd},
|
||||
os::fd::AsFd,
|
||||
path::{Path, PathBuf},
|
||||
sync::Arc,
|
||||
time::{SystemTime, UNIX_EPOCH},
|
||||
};
|
||||
use wayland_protocols::wp::linux_dmabuf::zv1::client::zwp_linux_buffer_params_v1;
|
||||
|
||||
|
|
|
|||
|
|
@ -18,10 +18,12 @@ use cctk::{
|
|||
},
|
||||
workspace::WorkspaceState,
|
||||
};
|
||||
use cosmic::cctk;
|
||||
use cosmic::iced::{
|
||||
self,
|
||||
futures::{executor::block_on, FutureExt, SinkExt},
|
||||
use cosmic::{
|
||||
cctk,
|
||||
iced::{
|
||||
self,
|
||||
futures::{executor::block_on, FutureExt, SinkExt},
|
||||
},
|
||||
};
|
||||
use futures_channel::mpsc;
|
||||
use std::{cell::RefCell, collections::HashMap, fs, path::PathBuf, sync::Arc, thread};
|
||||
|
|
|
|||
|
|
@ -1,15 +1,18 @@
|
|||
use cosmic::cctk::{
|
||||
self,
|
||||
cosmic_protocols::screencopy::v2::client::{
|
||||
zcosmic_screencopy_frame_v2, zcosmic_screencopy_manager_v2, zcosmic_screencopy_session_v2,
|
||||
use cosmic::{
|
||||
cctk::{
|
||||
self,
|
||||
cosmic_protocols::screencopy::v2::client::{
|
||||
zcosmic_screencopy_frame_v2, zcosmic_screencopy_manager_v2,
|
||||
zcosmic_screencopy_session_v2,
|
||||
},
|
||||
screencopy::{
|
||||
capture, Formats, Frame, ScreencopyFrameData, ScreencopyFrameDataExt,
|
||||
ScreencopyHandler, ScreencopySessionData, ScreencopySessionDataExt, ScreencopyState,
|
||||
},
|
||||
wayland_client::{Connection, Proxy, QueueHandle, WEnum},
|
||||
},
|
||||
screencopy::{
|
||||
capture, Formats, Frame, ScreencopyFrameData, ScreencopyFrameDataExt, ScreencopyHandler,
|
||||
ScreencopySessionData, ScreencopySessionDataExt, ScreencopyState,
|
||||
},
|
||||
wayland_client::{Connection, Proxy, QueueHandle, WEnum},
|
||||
iced_sctk::subsurface_widget::{SubsurfaceBuffer, SubsurfaceBufferRelease},
|
||||
};
|
||||
use cosmic::iced_sctk::subsurface_widget::{SubsurfaceBuffer, SubsurfaceBufferRelease};
|
||||
use std::{
|
||||
array,
|
||||
sync::{Arc, Weak},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue