mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02: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:
Notes:
sideshowbarker
2024-07-18 21:55:49 +09:00
Author: https://github.com/tomuta Commit: https://github.com/SerenityOS/serenity/commit/6cdb6574935 Pull-request: https://github.com/SerenityOS/serenity/pull/5370
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user