Re-use screencopy session instead of creating one each frame

This commit is contained in:
Ian Douglas Scott 2024-01-24 15:29:03 -08:00
parent 5269356089
commit 14d2a66c9d
4 changed files with 118 additions and 78 deletions

View file

@ -322,7 +322,6 @@ impl App {
if let Some(sender) = self.wayland_cmd_sender.as_ref() {
let mut capture_filter = wayland::CaptureFilter::default();
if self.visible {
// XXX handle on wrong connection
capture_filter.workspaces_on_outputs =
self.outputs.iter().map(|x| x.handle.clone()).collect();
capture_filter.toplevels_on_workspaces = self