summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2019-10-25 00:26:33 +0200
committerChristian Duerr <contact@christianduerr.com>2019-10-25 00:26:33 +0200
commit77127fbb41748eae264b1a7578a3bd7d0f94d5c5 (patch)
treeaa855fedac867286fea69ac6f3a3886dc4389541
parentb4a09cd9459cbce0bc3ed4b20b711df03c3dee6a (diff)
downloadalacritty-77127fbb41748eae264b1a7578a3bd7d0f94d5c5.tar.gz
alacritty-77127fbb41748eae264b1a7578a3bd7d0f94d5c5.zip
Fix bell not redrawing without event updates
Fixes #2914.
-rw-r--r--alacritty/src/event.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/alacritty/src/event.rs b/alacritty/src/event.rs
index 984352d4..225dc2b5 100644
--- a/alacritty/src/event.rs
+++ b/alacritty/src/event.rs
@@ -426,8 +426,12 @@ impl<N: Notify> Processor<N> {
}
if terminal.dirty {
- // Clear dirty flag
- terminal.dirty = !terminal.visual_bell.completed();
+ terminal.dirty = false;
+
+ // Request immediate re-draw if visual bell animation is not finished yet
+ if !terminal.visual_bell.completed() {
+ event_queue.push(GlutinEvent::UserEvent(Event::Wakeup));
+ }
// Redraw screen
self.display.draw(terminal, &self.message_buffer, &self.config);
@@ -440,7 +444,7 @@ impl<N: Notify> Processor<N> {
/// Handle events from glutin
///
- /// Doesn't take self mutably due to borrow checking. Kinda uggo but w/e.
+ /// Doesn't take self mutably due to borrow checking.
fn handle_event<T>(
event: GlutinEvent<Event>,
processor: &mut input::Processor<T, ActionContext<N, T>>,