summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2021-07-28 15:37:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-28 18:32:06 +0200
commit5fe3cc3b855cb641741ab93eab626b71e231bf37 (patch)
tree748f0b57db8296e1206e24c4ed7fc08b568d0769 /Userland
parent2ded2a8b15bb19ca76cc433c176c2075f9f34d94 (diff)
downloadserenity-5fe3cc3b855cb641741ab93eab626b71e231bf37.zip
WindowServer: Don't draw separator between pin window & close for modals
Modal windows cannot be pinned and thus we end up drawing 2 separators.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Services/WindowServer/Window.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp
index b4db2feb0c..4e0d7f52f6 100644
--- a/Userland/Services/WindowServer/Window.cpp
+++ b/Userland/Services/WindowServer/Window.cpp
@@ -803,10 +803,9 @@ void Window::ensure_window_menu()
m_window_menu_pin_item->set_icon(&pin_icon());
m_window_menu_pin_item->set_checkable(true);
m_window_menu->add_item(move(pin_item));
+ m_window_menu->add_item(make<MenuItem>(*m_window_menu, MenuItem::Type::Separator));
}
- 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());