From 9028fb451a967d69a9e258a083ba64b052a9a5dd Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Fri, 30 Oct 2020 06:22:13 +0000 Subject: Fix visual bell getting stuck This resolves a problem with the visual bell where it would not automatically trigger a redraw itself after the initial frame has been rendered. Since the unit of the visual bell duration is also unclear, it has been clarified. --- alacritty/src/event.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'alacritty/src') diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs index 7c3e786d..6c5318f6 100644 --- a/alacritty/src/event.rs +++ b/alacritty/src/event.rs @@ -874,6 +874,8 @@ impl Processor { if !terminal.visual_bell.completed() { let event: Event = TerminalEvent::Wakeup.into(); self.event_queue.push(event.into()); + + *control_flow = ControlFlow::Poll; } // Redraw screen. -- cgit