Re-use screencopy session instead of creating one each frame
This commit is contained in:
parent
5269356089
commit
14d2a66c9d
4 changed files with 118 additions and 78 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue