screencopy: Pass the node we're using to attach_buffer

Seems to make sure the compositor renders workspace with that GPU, so it
actually captures successfully.
This commit is contained in:
Ian Douglas Scott 2023-11-09 13:45:28 -08:00
parent a5f2be7e88
commit 39401bf3c3
4 changed files with 42 additions and 11 deletions

View file

@ -40,6 +40,7 @@ use std::{
cell::RefCell,
collections::{HashMap, HashSet},
fs,
path::PathBuf,
sync::Arc,
thread,
};
@ -108,7 +109,7 @@ pub struct AppData {
capture_filter: CaptureFilter,
captures: RefCell<HashMap<CaptureSource, Arc<Capture>>>,
dmabuf_feedback: Option<DmabufFeedback>,
gbm: Option<gbm::Device<fs::File>>,
gbm: Option<(PathBuf, gbm::Device<fs::File>)>,
}
impl AppData {