aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/xdg_shell.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-06-27 11:36:24 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-06-28 10:39:35 +0400
commitdc92d80b9f8de761df2aa0bfc90b61d53b9c0831 (patch)
tree9436ec6c92f9f967aa309a6f1ca6aa5b8ab5cb8a /src/handlers/xdg_shell.rs
parent0757ad08e776665603cba238301295ad27132d06 (diff)
downloadniri-dc92d80b9f8de761df2aa0bfc90b61d53b9c0831.tar.gz
niri-dc92d80b9f8de761df2aa0bfc90b61d53b9c0831.tar.bz2
niri-dc92d80b9f8de761df2aa0bfc90b61d53b9c0831.zip
Implement initial window screencasting
Diffstat (limited to 'src/handlers/xdg_shell.rs')
-rw-r--r--src/handlers/xdg_shell.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs
index 30b2f5d8..f3337786 100644
--- a/src/handlers/xdg_shell.rs
+++ b/src/handlers/xdg_shell.rs
@@ -466,6 +466,12 @@ impl XdgShellHandler for State {
let window = mapped.window.clone();
let output = output.clone();
+ #[cfg(feature = "xdp-gnome-screencast")]
+ self.niri
+ .stop_casts_for_target(crate::pw_utils::CastTarget::Window {
+ id: u64::from(mapped.id().get()),
+ });
+
self.backend.with_primary_renderer(|renderer| {
self.niri.layout.store_unmap_snapshot(renderer, &window);
});