Reuse window capture targets and offload pixel conversion
This commit is contained in:
1 parent
325835f40a
commit
aa54ab1b2b
6 files changed
+204
-36
No files matched your search
@@ -151,10 +151,13 @@ fn capture_opted_in(value: Option<&std::ffi::OsStr>) -> bool {
|
||||
value.is_some_and(|value| value == "1")
|
||||
}
|
||||
|
||||
pub(crate) fn init_global(display: &DisplayHandle) {
|
||||
pub(crate) fn init_global(
|
||||
display: &DisplayHandle,
|
||||
loop_handle: &smithay::reexports::calloop::LoopHandle<'static, Ferese>,
|
||||
) {
|
||||
if capture_allowed() {
|
||||
display.create_global::<Ferese, ZwlrScreencopyManagerV1, ()>(3, ());
|
||||
super::window_capture::init_global(display);
|
||||
super::window_capture::init_global(display, loop_handle);
|
||||
tracing::info!("authorized screencopy is enabled for this session");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user