output: Store position as u32 and offset bad configs

This commit is contained in:
Victoria Brekenfeld 2024-06-26 13:05:25 +02:00 committed by Victoria Brekenfeld
parent 9cd553e128
commit 26ccb653b7
5 changed files with 66 additions and 18 deletions

View file

@ -642,7 +642,7 @@ impl KmsState {
}
// add new ones
let mut w = shell.read().unwrap().global_space().size.w;
let mut w = shell.read().unwrap().global_space().size.w as u32;
if !test_only {
for (conn, crtc) in new_pairings {
let (output, _) = device.connector_added(
@ -655,7 +655,7 @@ impl KmsState {
startup_done.clone(),
)?;
if output.mirroring().is_none() {
w += output.config().mode_size().w;
w += output.config().mode_size().w as u32;
}
all_outputs.push(output);
}