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:
parent
a5f2be7e88
commit
39401bf3c3
4 changed files with 42 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue