1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:57:44 +00:00

WindowServer: Add clip rect to menubar painter

Fixes #5951.
This commit is contained in:
Linus Groh 2021-03-26 09:20:29 +01:00 committed by Andreas Kling
parent 6203a4a2e9
commit 8461100bf7

View file

@ -307,6 +307,7 @@ void WindowFrame::paint_menubar(Gfx::Painter& painter)
painter.fill_rect(menubar_rect, palette.window()); painter.fill_rect(menubar_rect, palette.window());
Gfx::PainterStateSaver saver(painter); Gfx::PainterStateSaver saver(painter);
painter.add_clip_rect(menubar_rect);
painter.translate(menubar_rect.location()); painter.translate(menubar_rect.location());
m_window.menubar()->for_each_menu([&](Menu& menu) { m_window.menubar()->for_each_menu([&](Menu& menu) {