mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:17:35 +00:00
WindowServer: Add WSClientConnection::post_message().
This way WSWindow doesn't have to grab at the Process.
This commit is contained in:
parent
427df5f312
commit
9ab9734da0
3 changed files with 43 additions and 39 deletions
|
@ -57,6 +57,14 @@ void WSClientConnection::post_error(const String& error_message)
|
|||
WSMessageLoop::the().post_message_to_client(m_client_id, message);
|
||||
}
|
||||
|
||||
void WSClientConnection::post_message(GUI_ServerMessage&& message)
|
||||
{
|
||||
if (!m_process)
|
||||
return;
|
||||
LOCKER(m_process->gui_events_lock());
|
||||
m_process->gui_events().append(move(message));
|
||||
}
|
||||
|
||||
void WSClientConnection::on_message(WSMessage& message)
|
||||
{
|
||||
if (message.is_client_request()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue