Fix Error handling in layershell producer (#61)

previous error handling resulted in a softlock when the connection
to the compositor was lost
This commit is contained in:
Ferdinand Schober
2024-01-01 22:07:21 +01:00
committed by GitHub
parent f5827bb31c
commit 6cdb607b11
8 changed files with 88 additions and 46 deletions

View File

@@ -24,9 +24,13 @@ impl Default for DummyProducer {
}
impl EventProducer for DummyProducer {
fn notify(&mut self, _: ClientEvent) {}
fn notify(&mut self, _event: ClientEvent) -> io::Result<()> {
Ok(())
}
fn release(&mut self) {}
fn release(&mut self) -> io::Result<()> {
Ok(())
}
}
impl Stream for DummyProducer {