mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 20:05:06 +00:00

The GEventLoop class is long gone, and the only class in these files is GWindowServerConnection, so let's update the file names. :^)
24 lines
711 B
C++
24 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);
|
|
}
|