mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:47:35 +00:00
WindowServer+Taskbar: Let WindowServer manage the "window menus".
Taskbar now simply asks the WindowServer to popup a window menu when right clicking on a taskbar button. This patch also implements the "close" menu item, and furthermore makes the window menu show up when you left-click a window's titlebar icon. :^)
This commit is contained in:
parent
da475ce3f5
commit
2e9cc75d11
10 changed files with 92 additions and 35 deletions
|
@ -11,8 +11,5 @@ public:
|
|||
private:
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
|
||||
GMenu& ensure_menu();
|
||||
|
||||
WindowIdentifier m_identifier;
|
||||
OwnPtr<GMenu> m_menu;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue