summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-10 08:43:44 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-10 08:43:44 +0200
commit2bc3cc4cabc611e36f3817d71d0587c0470b38f2 (patch)
tree0437e34bf5422a67cd06d5d0c59e5b32ca23a120 /Userland
parent9a41e7df2de686e1c1c7ca6bed1febb0ad93bc0e (diff)
downloadserenity-2bc3cc4cabc611e36f3817d71d0587c0470b38f2.zip
WindowServer: Add separator above "Close" in window menus
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Services/WindowServer/Window.cpp2
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());