mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:07:34 +00:00
WindowServer: Fix menu over-drawing
We only need to re-draw the item being selected and the item being deselected. We also don't care anymore if applets were added or removed as we no longer have a global menu bar.
This commit is contained in:
parent
8a4971f908
commit
7ae46ae218
6 changed files with 114 additions and 83 deletions
|
@ -23,8 +23,6 @@ public:
|
|||
MenuManager();
|
||||
virtual ~MenuManager() override;
|
||||
|
||||
void refresh();
|
||||
|
||||
bool is_open(const Menu&) const;
|
||||
bool has_open_menu() const { return !m_open_menu_stack.is_empty(); }
|
||||
|
||||
|
@ -55,6 +53,8 @@ private:
|
|||
virtual void event(Core::Event&) override;
|
||||
void handle_mouse_event(MouseEvent&);
|
||||
|
||||
void refresh();
|
||||
|
||||
WeakPtr<Menu> m_current_menu;
|
||||
WeakPtr<Window> m_previous_input_window;
|
||||
Vector<WeakPtr<Menu>> m_open_menu_stack;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue