mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
LibGUI: Handle fast_greet stuff in WindowServerConnection constructor
Move the from handshake() to the constructor (and move the constructor out-of-line while we're at it.) This prepares getting rid of the handshake() mechanism since this is the only remaining user.
This commit is contained in:
@@ -41,7 +41,8 @@ static void set_system_theme_from_anonymous_buffer(Core::AnonymousBuffer buffer)
|
||||
Application::the()->set_system_palette(buffer);
|
||||
}
|
||||
|
||||
void WindowServerConnection::handshake()
|
||||
WindowServerConnection::WindowServerConnection()
|
||||
: IPC::ServerConnection<WindowClientEndpoint, WindowServerEndpoint>(*this, "/tmp/portal/window")
|
||||
{
|
||||
// NOTE: WindowServer automatically sends a "fast_greet" message to us when we connect.
|
||||
// All we have to do is wait for it to arrive. This avoids a round-trip during application startup.
|
||||
|
||||
Reference in New Issue
Block a user