mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +00:00
LibGUI: Improve IconView rubberband performance
Rather than invalidating the entire window, which is very expensive on the transparent desktop widget, just invalidate the areas that actually need updating.
This commit is contained in:
parent
cd0a1fa5b0
commit
6cdb657493
5 changed files with 30 additions and 6 deletions
|
@ -208,7 +208,8 @@ void AbstractView::notify_selection_changed(Badge<ModelSelection>)
|
|||
did_update_selection();
|
||||
if (on_selection_change)
|
||||
on_selection_change();
|
||||
update();
|
||||
if (!m_suppress_update_on_selection_change)
|
||||
update();
|
||||
}
|
||||
|
||||
NonnullRefPtr<Gfx::Font> AbstractView::font_for_index(const ModelIndex& index) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue