kms: Fix target node for output
This commit is contained in:
parent
2fa14d8c58
commit
51968b0984
1 changed files with 3 additions and 3 deletions
|
|
@ -895,9 +895,9 @@ impl KmsState {
|
|||
}
|
||||
pub fn target_node_for_output(&self, output: &Output) -> Option<DrmNode> {
|
||||
self.devices
|
||||
.iter()
|
||||
.find(|(_, dev)| dev.surfaces.values().any(|s| s.output == *output))
|
||||
.map(|(target, _)| target)
|
||||
.values()
|
||||
.find(|dev| dev.surfaces.values().any(|s| s.output == *output))
|
||||
.map(|dev| &dev.render_node)
|
||||
.copied()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue