mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user