diff --git a/src/backend/drm/mod.rs b/src/backend/drm/mod.rs index c603463..bca5375 100644 --- a/src/backend/drm/mod.rs +++ b/src/backend/drm/mod.rs @@ -441,7 +441,7 @@ impl + Borrow + 'static> DrmDevice { if !encoders .iter() .map(|encoder| encoder.possible_crtcs()) - .all(|crtc_list| { + .any(|crtc_list| { resource_handles.filter_crtcs(crtc_list).contains(&crtc) }) { bail!(ErrorKind::NoSuitableEncoder(con_info, crtc))