mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
Userland: Update IPC calls to use proxies
This updates all existing code to use the auto-generated client methods instead of post_message/send_sync.
This commit is contained in:
parent
78803ce384
commit
5bb79ea0a7
63 changed files with 303 additions and 316 deletions
|
@ -26,29 +26,26 @@ TaskbarButton::~TaskbarButton()
|
|||
|
||||
void TaskbarButton::context_menu_event(GUI::ContextMenuEvent&)
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::PopupWindowMenu(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect().location()));
|
||||
GUI::WindowManagerServerConnection::the().async_popup_window_menu(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect().location());
|
||||
}
|
||||
|
||||
void TaskbarButton::update_taskbar_rect()
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::SetWindowTaskbarRect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect()));
|
||||
GUI::WindowManagerServerConnection::the().async_set_window_taskbar_rect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
screen_relative_rect());
|
||||
}
|
||||
|
||||
void TaskbarButton::clear_taskbar_rect()
|
||||
{
|
||||
GUI::WindowManagerServerConnection::the().post_message(
|
||||
Messages::WindowManagerServer::SetWindowTaskbarRect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
{}));
|
||||
GUI::WindowManagerServerConnection::the().async_set_window_taskbar_rect(
|
||||
m_identifier.client_id(),
|
||||
m_identifier.window_id(),
|
||||
{});
|
||||
}
|
||||
|
||||
void TaskbarButton::resize_event(GUI::ResizeEvent& event)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue