From edff9a2b009ddd1289e0d01d257985cec3f8f12b Mon Sep 17 00:00:00 2001 From: Speak2Erase Date: Sun, 24 Mar 2024 17:10:32 -0700 Subject: [PATCH] Request repaint after sending events --- crates/term/src/backends/process.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); } }