kms: Don't block surface-threads on startup cond

This commit is contained in:
Victoria Brekenfeld 2024-06-11 17:24:46 +02:00 committed by Victoria Brekenfeld
parent 31ff17a323
commit 12fab6e220
6 changed files with 24 additions and 24 deletions

View file

@ -68,10 +68,13 @@ pub fn init_backend_auto(
{
{
let (lock, cvar) = &*state.common.startup_done;
let mut startup = lock.lock().unwrap();
*startup = true;
cvar.notify_all();
state
.common
.startup_done
.store(true, std::sync::atomic::Ordering::SeqCst);
for output in state.common.shell.read().unwrap().outputs() {
state.backend.schedule_render(&output);
}
}
}
}