mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 16:35:06 +00:00
WindowServer+TaskBar: Add a taskbar window button popup menu.
This patch only hooks up the minimize and unminimize actions.
This commit is contained in:
parent
c5c4e54a67
commit
956bd23aae
17 changed files with 158 additions and 56 deletions
|
@ -39,7 +39,7 @@ void GMenu::add_separator()
|
|||
m_items.append(make<GMenuItem>(m_menu_id, GMenuItem::Separator));
|
||||
}
|
||||
|
||||
void GMenu::popup(const Point& screen_position)
|
||||
void GMenu::popup(const Point& screen_position, bool top_anchored)
|
||||
{
|
||||
if (!m_menu_id)
|
||||
realize_menu();
|
||||
|
@ -47,6 +47,7 @@ void GMenu::popup(const Point& screen_position)
|
|||
request.type = WSAPI_ClientMessage::Type::PopupMenu;
|
||||
request.menu.menu_id = m_menu_id;
|
||||
request.menu.position = screen_position;
|
||||
request.menu.top_anchored = top_anchored;
|
||||
GEventLoop::post_message_to_server(request);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue