1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-15 03:12:07 +00:00

WindowServer: Don't repaint entire menubar on applet update

This commit is contained in:
Andreas Kling 2019-12-30 01:18:38 +01:00
parent 8fd7f3d9fa
commit 00d26457c5
3 changed files with 7 additions and 3 deletions

View file

@ -283,10 +283,8 @@ void WSMenuManager::draw_applet(const WSWindow& applet)
void WSMenuManager::invalidate_applet(const WSWindow& applet, const Rect& rect)
{
// FIXME: This should only invalidate the applet's own rect, not the whole menubar.
(void)rect;
draw_applet(applet);
window().invalidate();
window().invalidate(rect.translated(applet.rect_in_menubar().location()));
}
Rect WSMenuManager::menubar_rect() const