1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

WindowServer: Add WindowFrame::invalidate_menubar() and use it

Clean up a FIXME about overly aggressive invalidation.
This commit is contained in:
Andreas Kling 2021-07-07 18:39:41 +02:00
parent b180e154aa
commit 092e5b75ba
3 changed files with 7 additions and 2 deletions

View file

@ -1264,8 +1264,7 @@ void Window::invalidate_menubar()
{
if (!m_should_show_menubar || !menubar())
return;
// FIXME: This invalidates way more than the menubar!
frame().invalidate();
frame().invalidate_menubar();
}
void Window::set_modified(bool modified)