main: only bind up to version 3 of wl_output

This commit is contained in:
Tadeo Kondrak
2021-12-25 18:32:37 +01:00
committed by Kenny Levinsen
parent 90ffa7df27
commit 1edefd9cad
+1 -1
View File
@@ -400,7 +400,7 @@ impl<'a> App<'a> {
version,
} => {
if let "wl_output" = &interface[..] {
let output = registry.bind(version, id);
let output = registry.bind(std::cmp::min(version, 3), id);
inner_global.lock().unwrap().add_output(id, output);
}
}