mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
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.
This commit is contained in:
parent
bede5d5d1c
commit
9028fb451a
3 changed files with 5 additions and 2 deletions
|
@ -68,6 +68,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||
- Feature checking when cross compiling between different operating systems
|
||||
- Crash when writing to the clipboard fails on Wayland
|
||||
- Crash with large negative `font.offset.x/y`
|
||||
- Visual bell getting stuck on the first frame
|
||||
|
||||
## 0.5.0
|
||||
|
||||
|
|
|
@ -297,8 +297,8 @@
|
|||
# - Linear
|
||||
#animation: EaseOutExpo
|
||||
|
||||
# Duration of the visual bell flash. A `duration` of `0` will disable the
|
||||
# visual bell animation.
|
||||
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
|
||||
# disable the visual bell animation.
|
||||
#duration: 0
|
||||
|
||||
# Visual bell animation color.
|
||||
|
|
|
@ -874,6 +874,8 @@ impl<N: Notify + OnResize> Processor<N> {
|
|||
if !terminal.visual_bell.completed() {
|
||||
let event: Event = TerminalEvent::Wakeup.into();
|
||||
self.event_queue.push(event.into());
|
||||
|
||||
*control_flow = ControlFlow::Poll;
|
||||
}
|
||||
|
||||
// Redraw screen.
|
||||
|
|
Loading…
Reference in a new issue