diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-23 17:57:05 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-23 17:57:05 +0200 |
commit | f27d7687455fbc87ba0d22527ffef11bf48d86cb (patch) | |
tree | 70b1117eff3a1d4899ad54d33361b22dd5924bfe /Userland/Libraries/LibGUI/Window.cpp | |
parent | d196fbce5bb85f1726761345fa5de88d3cc3ddf4 (diff) | |
download | serenity-f27d7687455fbc87ba0d22527ffef11bf48d86cb.zip |
LibGUI: Don't force flush pending paints whenever mouse moves
This patch removes a hack that forced any pending repaints to happen
immediately whenever you moved the mouse over a window.
The purpose of that mechanism was to ensure that quick button presses
still show up visually, and since that is now accomplished via
Widget::repaint(), we no longer need this.
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.cpp')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp index 5dbd41b5ea..6e5f1cfe8c 100644 --- a/Userland/Libraries/LibGUI/Window.cpp +++ b/Userland/Libraries/LibGUI/Window.cpp @@ -367,11 +367,6 @@ void Window::handle_mouse_event(MouseEvent& event) if (event.buttons() != 0 && !m_automatic_cursor_tracking_widget) m_automatic_cursor_tracking_widget = *result.widget; result.widget->dispatch_event(local_event, this); - - if (!m_pending_paint_event_rects.is_empty()) { - MultiPaintEvent paint_event(move(m_pending_paint_event_rects), size()); - handle_multi_paint_event(paint_event); - } } void Window::handle_multi_paint_event(MultiPaintEvent& event) |