diff --git a/crates/term/src/backends/process.rs b/crates/term/src/backends/process.rs index c398b345..ed64f572 100644 --- a/crates/term/src/backends/process.rs +++ b/crates/term/src/backends/process.rs @@ -48,10 +48,12 @@ pub struct ForwardEventListener(Sender, egui::Context); impl alacritty_terminal::event::EventListener for ForwardEventListener { fn send_event(&self, event: Event) { - if matches!(event, Event::Wakeup) { + let needs_repaint = matches!(event, Event::Wakeup); + let _ = self.0.send(event); + + if needs_repaint { self.1.request_repaint(); } - let _ = self.0.send(event); } }