wlroots: Fix crash when socket is overwhelmed

Previously when the output buffer was overwhelmed, additional
events were submitted until the outgoing buffer filled up, which
causes the wayland-connection to 'break' and not accept further attempts
to flush() the socket.
This commit is contained in:
Ferdinand Schober
2023-10-12 12:40:57 +02:00
parent ab2514e508
commit 96ab7d304b
6 changed files with 37 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ impl X11Consumer {
}
impl EventConsumer for X11Consumer {
fn consume(&self, event: Event, _: ClientHandle) {
fn consume(&mut self, event: Event, _: ClientHandle) {
match event {
Event::Pointer(pointer_event) => match pointer_event {
crate::event::PointerEvent::Motion {