diff --git a/src/wayland/capture.rs b/src/wayland/capture.rs
index 9dc14ff..b758ba1 100644
--- a/src/wayland/capture.rs
+++ b/src/wayland/capture.rs
@@ -4,17 +4,16 @@ use cctk::{
toplevel_info::v1::client::zcosmic_toplevel_handle_v1,
workspace::v1::client::zcosmic_workspace_handle_v1,
},
- screencopy::{ScreencopySessionData, ScreencopySessionDataExt},
- wayland_client::{protocol::wl_output, Connection, Proxy, QueueHandle},
+ wayland_client::{protocol::wl_output, Proxy, QueueHandle},
};
use cosmic::cctk;
use std::sync::{
atomic::{AtomicBool, Ordering},
- Arc, Mutex, Weak,
+ Arc, Mutex,
};
-use super::{AppData, Buffer};
+use super::{AppData, ScreencopySession, SessionData};
#[derive(Clone, Hash, PartialEq, Eq)]
pub enum CaptureSource {
@@ -32,20 +31,14 @@ pub struct CaptureFilter {
}
pub struct Capture {
- pub buffer: Mutex