kms: Don't try to render inactive outputs

This commit is contained in:
Victoria Brekenfeld 2025-01-20 18:10:50 +01:00 committed by Victoria Brekenfeld
parent b87049bb7c
commit 605bb63a4d
2 changed files with 2 additions and 0 deletions

View file

@ -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<_, _>>();

View file

@ -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<_, _>>();