diff options
author | Tom <tomut@yahoo.com> | 2021-06-27 14:40:51 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-28 17:02:37 +0200 |
commit | 30f531a55fbe9b928fad4a2722374a3736a9128a (patch) | |
tree | ee88d9403867b9293049c59bf47eb07ca1388d5e /Userland/Services/WindowServer/Menu.h | |
parent | 2d4eb40f5951ff78d60470c9cc8f5d78d508ff6a (diff) | |
download | serenity-30f531a55fbe9b928fad4a2722374a3736a9128a.zip |
WindowServer: Fix menu location on screens other than main screen
The menus always thought they were being outside of the main screen,
which caused them to be left and/or top aligned. This also fixes the
calculation of the available space by using the screen rectangle where
it will be displayed.
Diffstat (limited to 'Userland/Services/WindowServer/Menu.h')
-rw-r--r-- | Userland/Services/WindowServer/Menu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Menu.h b/Userland/Services/WindowServer/Menu.h index 219a55fd50..478be6cda8 100644 --- a/Userland/Services/WindowServer/Menu.h +++ b/Userland/Services/WindowServer/Menu.h @@ -75,7 +75,7 @@ public: void set_rect_in_window_menubar(const Gfx::IntRect& rect) { m_rect_in_window_menubar = rect; } Window* menu_window() { return m_menu_window.ptr(); } - Window& ensure_menu_window(); + Window& ensure_menu_window(Gfx::IntPoint const&); Window* window_menu_of() { return m_window_menu_of; } void set_window_menu_of(Window& window) { m_window_menu_of = window; } |