From 2bc3cc4cabc611e36f3817d71d0587c0470b38f2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 10 May 2021 08:43:44 +0200 Subject: WindowServer: Add separator above "Close" in window menus --- Userland/Services/WindowServer/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Userland') 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(*m_window_menu, MenuItem::Type::Separator)); + auto close_item = make(*m_window_menu, (unsigned)WindowMenuAction::Close, "&Close"); m_window_menu_close_item = close_item.ptr(); m_window_menu_close_item->set_icon(&close_icon()); -- cgit v1.2.3