fmt commit
This commit is contained in:
parent
352c526e9e
commit
9e0a6e1b5f
25 changed files with 787 additions and 499 deletions
|
|
@ -40,7 +40,10 @@ use smithay::{
|
|||
DisplayHandle, Resource,
|
||||
},
|
||||
},
|
||||
utils::{Size, signaling::{Linkable, SignalToken, Signaler}},
|
||||
utils::{
|
||||
signaling::{Linkable, SignalToken, Signaler},
|
||||
Size,
|
||||
},
|
||||
wayland::{
|
||||
dmabuf::DmabufGlobal,
|
||||
output::{Mode as OutputMode, Output, PhysicalProperties},
|
||||
|
|
@ -1023,12 +1026,15 @@ impl KmsState {
|
|||
}
|
||||
|
||||
pub fn capture_output(&self, output: &Output) -> Option<(DrmNode, Dmabuf, Instant)> {
|
||||
self.devices
|
||||
.values()
|
||||
.find_map(|dev| dev.surfaces.values().find(|s| &s.output == output)
|
||||
.and_then(|s| s.last_render.clone()
|
||||
.map(|(buf, time)| (dev.render_node.clone(), buf, time))
|
||||
)
|
||||
)
|
||||
self.devices.values().find_map(|dev| {
|
||||
dev.surfaces
|
||||
.values()
|
||||
.find(|s| &s.output == output)
|
||||
.and_then(|s| {
|
||||
s.last_render
|
||||
.clone()
|
||||
.map(|(buf, time)| (dev.render_node.clone(), buf, time))
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue