diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-30 15:59:11 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-30 15:59:11 +0200 |
commit | 575acfac98e993b4061dcbcbd3d2c7146949abdb (patch) | |
tree | d47fb5ea424f6c38a2e63054082be29f2643b846 /Servers | |
parent | 1fa467a424f12619d3989774c492353092cfd344 (diff) | |
download | serenity-575acfac98e993b4061dcbcbd3d2c7146949abdb.zip |
WindowServer: Add a separator before "close" in window menus.
Diffstat (limited to 'Servers')
-rw-r--r-- | Servers/WindowServer/WSWindow.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Servers/WindowServer/WSWindow.cpp b/Servers/WindowServer/WSWindow.cpp index e69cd3ce07..6b66e4262e 100644 --- a/Servers/WindowServer/WSWindow.cpp +++ b/Servers/WindowServer/WSWindow.cpp @@ -321,6 +321,7 @@ void WSWindow::popup_window_menu(const Point& position) m_window_menu = make<WSMenu>(nullptr, -1, "(Window Menu)"); m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 1, "Minimize")); m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 2, "Unminimize")); + m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, WSMenuItem::Type::Separator)); m_window_menu->add_item(make<WSMenuItem>(*m_window_menu, 3, "Close")); m_window_menu->on_item_activation = [&](auto& item) { |