refactor: single instance
This commit is contained in:
parent
a0a11b6e02
commit
791441ca10
13 changed files with 271 additions and 195 deletions
|
|
@ -7,6 +7,7 @@ use cctk::{
|
|||
Connection, Dispatch, QueueHandle, WEnum,
|
||||
},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
use cosmic::iced::widget::image;
|
||||
use std::{
|
||||
os::fd::{AsFd, OwnedFd},
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ use cctk::{
|
|||
screencopy::{ScreencopySessionData, ScreencopySessionDataExt},
|
||||
wayland_client::{protocol::wl_output, Proxy, QueueHandle},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
|
||||
use std::sync::{
|
||||
atomic::{AtomicBool, Ordering},
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ use cctk::{
|
|||
},
|
||||
wayland_client::{protocol::wl_buffer, Connection, QueueHandle},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
|
||||
use std::{fs, io, os::unix::fs::MetadataExt, path::PathBuf};
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
// * Need output name to compare?
|
||||
|
||||
// TODO: Way to activate workspace, toplevel? Close? Move?
|
||||
|
||||
use cctk::{
|
||||
cosmic_protocols::{
|
||||
toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
|
||||
|
|
@ -30,6 +29,7 @@ use cctk::{
|
|||
},
|
||||
workspace::WorkspaceState,
|
||||
};
|
||||
use cosmic::cctk;
|
||||
use cosmic::iced::{
|
||||
self,
|
||||
futures::{executor::block_on, FutureExt, SinkExt},
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ use cctk::{
|
|||
screencopy::{BufferInfo, ScreencopyHandler, ScreencopyState},
|
||||
wayland_client::{Connection, QueueHandle, WEnum},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
|
||||
use super::{AppData, Capture, CaptureImage, CaptureSource, Event};
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ use cctk::{
|
|||
toplevel_management::{ToplevelManagerHandler, ToplevelManagerState},
|
||||
wayland_client::{Connection, QueueHandle, WEnum},
|
||||
};
|
||||
use cosmic::cctk;
|
||||
|
||||
use super::{AppData, CaptureSource, Event};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use cctk::workspace::{WorkspaceHandler, WorkspaceState};
|
||||
use cosmic::cctk;
|
||||
|
||||
use super::{AppData, CaptureSource, Event};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue