diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-05 12:55:57 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-05-05 12:55:57 +0400 |
| commit | 96823eea38fc4690a5f2eb37050ce001a7292d6e (patch) | |
| tree | d8ff85ce011fe1e52c8badfe5383a9004d6c5fca /src/backend/tty.rs | |
| parent | ea590918696709b0586eb1941b4829ffc5a46e94 (diff) | |
| download | niri-96823eea38fc4690a5f2eb37050ce001a7292d6e.tar.gz niri-96823eea38fc4690a5f2eb37050ce001a7292d6e.tar.bz2 niri-96823eea38fc4690a5f2eb37050ce001a7292d6e.zip | |
Make output name matching case-insensitive
Diffstat (limited to 'src/backend/tty.rs')
| -rw-r--r-- | src/backend/tty.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |
