1
Fork 0
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:
Andreas Kling 2019-02-14 10:15:49 +01:00
parent 427df5f312
commit 9ab9734da0
3 changed files with 43 additions and 39 deletions

View file

@ -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()) {