kms: lock during screen conf changes

This commit is contained in:
Victoria Brekenfeld 2025-07-16 21:13:50 +02:00 committed by Victoria Brekenfeld
parent bb7a6a7113
commit e34a289c01
10 changed files with 747 additions and 382 deletions

View file

@ -505,6 +505,7 @@ impl Config {
found_outputs.push((output.clone(), enabled));
}
let mut backend = backend.lock();
if let Err(err) = backend.apply_config_for_outputs(
false,
loop_handle,
@ -580,7 +581,7 @@ impl Config {
w += output.geometry().size.w as u32;
}
if let Err(err) = backend.apply_config_for_outputs(
if let Err(err) = backend.lock().apply_config_for_outputs(
false,
loop_handle,
self.dynamic_conf.screen_filter(),