From 96823eea38fc4690a5f2eb37050ce001a7292d6e Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Sun, 5 May 2024 12:55:57 +0400 Subject: Make output name matching case-insensitive --- src/backend/tty.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/tty.rs') diff --git a/src/backend/tty.rs b/src/backend/tty.rs index 4e7055ee..ddf6c54b 100644 --- a/src/backend/tty.rs +++ b/src/backend/tty.rs @@ -714,7 +714,7 @@ impl Tty { .borrow() .outputs .iter() - .find(|o| o.name == output_name) + .find(|o| o.name.eq_ignore_ascii_case(&output_name)) .cloned() .unwrap_or_default(); @@ -1574,7 +1574,7 @@ impl Tty { .borrow() .outputs .iter() - .find(|o| o.name == surface.name) + .find(|o| o.name.eq_ignore_ascii_case(&surface.name)) .cloned() .unwrap_or_default(); if config.off { @@ -1704,7 +1704,7 @@ impl Tty { .borrow() .outputs .iter() - .find(|o| o.name == output_name) + .find(|o| o.name.eq_ignore_ascii_case(&output_name)) .cloned() .unwrap_or_default(); -- cgit