mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 04:07:34 +00:00
WindowServer: Fixed Menubar resize issue
The menubar bar wasn't being resized correctly, as the underlying Window was never being resized when `DisplayProperties` was chaning the resolution while the system was running. `m_window` now gets the correct window size when it's been updated, so a reboot isn't required.
This commit is contained in:
parent
f37cf5ea4a
commit
d0c11bbcc3
3 changed files with 19 additions and 3 deletions
|
@ -21,6 +21,8 @@ public:
|
|||
|
||||
Vector<WeakPtr<WSMenu>>& open_menu_stack() { return m_open_menu_stack; }
|
||||
|
||||
void set_needs_window_resize();
|
||||
|
||||
private:
|
||||
WSWindow& window() { return *m_window; }
|
||||
const WSWindow& window() const { return *m_window; }
|
||||
|
@ -36,4 +38,6 @@ private:
|
|||
RefPtr<CTimer> m_timer;
|
||||
|
||||
Vector<WeakPtr<WSMenu>> m_open_menu_stack;
|
||||
|
||||
bool m_needs_window_resize;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue