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:
parent
8fd7f3d9fa
commit
00d26457c5
3 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue