1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-02 22:32:12 +00:00

WindowServer: Remove "system menu" concept from WindowServer

This commit is contained in:
Andreas Kling 2021-03-25 23:08:34 +01:00
parent 619a223800
commit 327866520a
9 changed files with 19 additions and 148 deletions

View file

@ -122,7 +122,7 @@ int Menu::content_width() const
if (widest_shortcut)
widest_item += padding_between_text_and_shortcut() + widest_shortcut;
return max(widest_item, rect_in_global_menubar().width()) + horizontal_padding() + frame_thickness() * 2;
return max(widest_item, rect_in_window_menubar().width()) + horizontal_padding() + frame_thickness() * 2;
}
void Menu::redraw()