1
0
Fork 0
forked from wry/wry

Merge pull request #377 from mahkoh/jorth/container-damage

wayland: kill clients in event-handling stage
This commit is contained in:
mahkoh 2025-02-21 21:29:51 +01:00 committed by GitHub
commit 5625b0585f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View file

@ -137,5 +137,8 @@ async fn send(data: Rc<Client>) {
);
}
}
data.state.clients.kill(data.id);
let run_toplevel = data.state.run_toplevel.clone();
run_toplevel.schedule(move || {
data.state.clients.kill(data.id);
});
}

View file

@ -230,10 +230,10 @@ impl EiClient {
match self.connection.get() {
Some(d) => {
d.send_disconnected(Some(&msg));
self.state.clients.shutdown(self.id);
self.state.ei_clients.shutdown(self.id);
}
_ => {
self.state.clients.kill(self.id);
self.state.ei_clients.kill(self.id);
}
}
}