mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:47:35 +00:00
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.
This commit is contained in:
parent
2d4eb40f59
commit
30f531a55f
4 changed files with 34 additions and 26 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue