diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-10 08:43:44 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-10 08:43:44 +0200 |
commit | 2bc3cc4cabc611e36f3817d71d0587c0470b38f2 (patch) | |
tree | 0437e34bf5422a67cd06d5d0c59e5b32ca23a120 /Userland | |
parent | 9a41e7df2de686e1c1c7ca6bed1febb0ad93bc0e (diff) | |
download | serenity-2bc3cc4cabc611e36f3817d71d0587c0470b38f2.zip |
WindowServer: Add separator above "Close" in window menus
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Services/WindowServer/Window.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 01dfe74c67..e9ec0c5456 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -646,6 +646,8 @@ void Window::ensure_window_menu() menubar_visibility_item->set_checkable(true); m_window_menu->add_item(move(menubar_visibility_item)); + m_window_menu->add_item(make<MenuItem>(*m_window_menu, MenuItem::Type::Separator)); + auto close_item = make<MenuItem>(*m_window_menu, (unsigned)WindowMenuAction::Close, "&Close"); m_window_menu_close_item = close_item.ptr(); m_window_menu_close_item->set_icon(&close_icon()); |