1
0
Fork 0
forked from wry/wry

output: pre-compute OutputId hash

This commit is contained in:
Julian Orth 2026-04-05 14:15:38 +02:00 committed by kossLAN
parent 9bd7e14b08
commit 6e9adc487e
No known key found for this signature in database
8 changed files with 88 additions and 40 deletions

View file

@ -154,12 +154,7 @@ impl TestBackend {
});
let default_monitor_info = MonitorInfo {
modes: Some(vec![mode]),
output_id: Rc::new(OutputId {
connector: None,
manufacturer: "jay".to_string(),
model: "TestConnector".to_string(),
serial_number: default_connector.id.to_string(),
}),
output_id: OutputId::new("", "jay", "TestConnector", default_connector.id.to_string()),
width_mm: 80,
height_mm: 60,
non_desktop: false,

View file

@ -54,12 +54,7 @@ async fn test(run: Rc<TestRun>) -> TestResult {
});
let new_monitor_info = MonitorInfo {
modes: Some(vec![]),
output_id: Rc::new(OutputId {
connector: None,
manufacturer: "jay".to_string(),
model: "jay second connector".to_string(),
serial_number: "".to_string(),
}),
output_id: OutputId::new("", "jay", "jay second connector", ""),
width_mm: 0,
height_mm: 0,
non_desktop: false,