From 7dadb75e28afd30e3840534f17af7ee625038025 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 29 Apr 2020 12:06:11 +0200 Subject: [PATCH] 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. --- Servers/WindowServer/WindowFrame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }