From 612436e42de06759a98b8f1f6c10f6f4be652603 Mon Sep 17 00:00:00 2001 From: Drakulix Date: Sat, 2 Dec 2017 13:51:08 +0100 Subject: [PATCH] Correctly scan for any encoders --- src/backend/drm/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))