Skip to content

Commit

Permalink
kms: Don't try to render inactive outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Jan 21, 2025
1 parent b87049b commit 605bb63
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/kms/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ impl Device {
let output_map = self
.surfaces
.iter()
.filter(|(_, s)| s.is_active())
.map(|(crtc, surface)| (*crtc, surface.output.clone()))
.collect::<HashMap<_, _>>();

Expand Down
1 change: 1 addition & 0 deletions src/backend/kms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ impl KmsState {
let output_map = device
.surfaces
.iter()
.filter(|(_, s)| s.is_active())
.map(|(crtc, surface)| (*crtc, surface.output.clone()))
.collect::<HashMap<_, _>>();

Expand Down

0 comments on commit 605bb63

Please sign in to comment.