mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:58:11 +00:00
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.
This commit is contained in:
parent
d196fbce5b
commit
f27d768745
1 changed files with 0 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue