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

@@ -23,7 +23,11 @@ impl Stream for MacOSProducer {
}
impl EventProducer for MacOSProducer {
fn notify(&mut self, _event: ClientEvent) {}
fn notify(&mut self, _event: ClientEvent) -> io::Result<()> {
Ok(())
}
fn release(&mut self) {}
fn release(&mut self) -> io::Result<()> {
Ok(())
}
}