Browse Source

Terminal: Fix insufficient repaint after visual bell clears.

Also make the bell time a little shorter, 500ms kinda wears on you. :^)
Andreas Kling 6 years ago
parent
commit
473d0e83ad
1 changed files with 3 additions and 5 deletions
  1. 3 5
      Applications/Terminal/Terminal.cpp

+ 3 - 5
Applications/Terminal/Terminal.cpp

@@ -631,14 +631,12 @@ void Terminal::on_char(byte ch)
         if (m_should_beep)
         if (m_should_beep)
             sysbeep();
             sysbeep();
         else {
         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.set_single_shot(true);
             m_visual_beep_timer.on_timeout = [this] {
             m_visual_beep_timer.on_timeout = [this] {
-                                                 m_needs_background_fill = true;
-                                                 update();
+                                                 force_repaint();
                                              };
                                              };
-            m_needs_background_fill = true;
-            update();
+            force_repaint();
         }
         }
         return;
         return;
     case '\t': {
     case '\t': {