summaryrefslogtreecommitdiff
path: root/Servers/WindowServer
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-04-29 12:06:11 +0200
committerAndreas Kling <kling@serenityos.org>2020-04-29 12:07:40 +0200
commit7dadb75e28afd30e3840534f17af7ee625038025 (patch)
tree2feda8ed264094b5c45e6040d5edb6dd77d4fd03 /Servers/WindowServer
parentf0cde70c18b51f8e2a701a0cbf0df028e7231e12 (diff)
downloadserenity-7dadb75e28afd30e3840534f17af7ee625038025.zip
WindowServer: Pop up the window menu at bottom left of window icon
When clicking the window icon, we now pop up the window menu at the bottom left of the icon, no matter where you clicked it. Right-clicking the title bar still pops up at the event position.
Diffstat (limited to 'Servers/WindowServer')
-rw-r--r--Servers/WindowServer/WindowFrame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Servers/WindowServer/WindowFrame.cpp b/Servers/WindowServer/WindowFrame.cpp
index 9da5943562..6aeec401cd 100644
--- a/Servers/WindowServer/WindowFrame.cpp
+++ b/Servers/WindowServer/WindowFrame.cpp
@@ -358,7 +358,7 @@ void WindowFrame::on_mouse_event(const MouseEvent& event)
if (m_window.type() == WindowType::Normal && event.type() == Event::MouseDown && (event.button() == MouseButton::Left || event.button() == MouseButton::Right) && title_bar_icon_rect().contains(event.position())) {
wm.move_to_front_and_make_active(m_window);
- m_window.popup_window_menu(event.position().translated(rect().location()));
+ m_window.popup_window_menu(title_bar_icon_rect().bottom_left().translated(rect().location()));
return;
}