From d52ca23caa4345ddf768da5af24f47eae6fd4738 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 8 Sep 2023 17:54:02 +0400 Subject: Add initial monitor screencast portal impl DmaBuf monitor screencasting through xdg-dekstop-portal-gnome! Somewhat limited currently, e.g. the cursor is always embedded. But gets most of the job done. --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index 9d03275e..b624f88e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -128,12 +128,15 @@ pub enum Action { pub struct DebugConfig { #[knuffel(child, unwrap(argument), default = 1.)] pub animation_slowdown: f64, + #[knuffel(child)] + pub screen_cast_in_non_session_instances: bool, } impl Default for DebugConfig { fn default() -> Self { Self { animation_slowdown: 1., + screen_cast_in_non_session_instances: false, } } } @@ -308,6 +311,7 @@ mod tests { ]), debug: DebugConfig { animation_slowdown: 2., + ..Default::default() }, }, ); -- cgit