WindowServer: Add a separator before "close" in window menus.

This commit is contained in:
Andreas Kling 2019-06-30 15:59:11 +02:00
parent 1fa467a424
commit 575acfac98
Notes: sideshowbarker 2024-07-19 13:25:51 +09:00

View file

@ -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) {