mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-11 01:06:01 +03:00
8a024a3305
The GEventLoop class is long gone, and the only class in these files is GWindowServerConnection, so let's update the file names. :^)
25 lines
711 B
C++
25 lines
711 B
C++
#include "TaskbarButton.h"
|
|
#include <LibGUI/GAction.h>
|
|
#include <LibGUI/GWindowServerConnection.h>
|
|
#include <WindowServer/WSAPITypes.h>
|
|
|
|
TaskbarButton::TaskbarButton(const WindowIdentifier& identifier, GWidget* parent)
|
|
: GButton(parent)
|
|
, m_identifier(identifier)
|
|
{
|
|
}
|
|
|
|
TaskbarButton::~TaskbarButton()
|
|
{
|
|
}
|
|
|
|
void TaskbarButton::context_menu_event(GContextMenuEvent&)
|
|
{
|
|
WSAPI_ClientMessage request;
|
|
request.type = WSAPI_ClientMessage::Type::WM_PopupWindowMenu;
|
|
request.wm.client_id = m_identifier.client_id();
|
|
request.wm.window_id = m_identifier.window_id();
|
|
request.wm.position = screen_relative_rect().location();
|
|
GWindowServerConnection::the().post_message_to_server(request);
|
|
}
|