kms: Don't join on DrmSurface drop

This commit is contained in:
Victoria Brekenfeld 2025-09-10 15:52:41 +02:00 committed by Victoria Brekenfeld
parent 458f5f4dcf
commit cd1117080c
3 changed files with 22 additions and 9 deletions

View file

@ -705,11 +705,9 @@ impl<'a> KmsGuard<'a> {
.crtcs()
.iter()
.filter(|crtc| {
!device
.inner
.surfaces
.get(crtc)
.is_some_and(|surface| surface.output.is_enabled())
!device.inner.surfaces.get(crtc).is_some()
// TODO: We can't do this. See https://github.com/Smithay/smithay/pull/1820
//.is_some_and(|surface| surface.output.is_enabled())
})
.copied()
.collect::<HashSet<crtc::Handle>>();