mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
WindowServer: Add WindowFrame::invalidate_menubar() and use it
Clean up a FIXME about overly aggressive invalidation.
This commit is contained in:
parent
b180e154aa
commit
092e5b75ba
3 changed files with 7 additions and 2 deletions
|
@ -585,6 +585,11 @@ void WindowFrame::invalidate()
|
|||
m_window.invalidate(true, true);
|
||||
}
|
||||
|
||||
void WindowFrame::invalidate_menubar()
|
||||
{
|
||||
invalidate(menubar_rect());
|
||||
}
|
||||
|
||||
void WindowFrame::invalidate(Gfx::IntRect relative_rect)
|
||||
{
|
||||
auto frame_rect = rect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue