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:
parent
40ca3b019f
commit
473d0e83ad
1 changed files with 3 additions and 5 deletions
|
@ -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': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue