1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

Terminal: Fix insufficient repaint after visual bell clears.

Also make the bell time a little shorter, 500ms kinda wears on you. :^)
This commit is contained in:
Andreas Kling 2019-06-01 00:36:56 +02:00
parent 40ca3b019f
commit 473d0e83ad

View file

@ -631,14 +631,12 @@ void Terminal::on_char(byte ch)
if (m_should_beep)
sysbeep();
else {
m_visual_beep_timer.restart(500);
m_visual_beep_timer.restart(200);
m_visual_beep_timer.set_single_shot(true);
m_visual_beep_timer.on_timeout = [this] {
m_needs_background_fill = true;
update();
force_repaint();
};
m_needs_background_fill = true;
update();
force_repaint();
}
return;
case '\t': {