mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
WindowServer: WSWindow can have a pointer to the client rather than an ID.
Since WSWindows are owned by WSConnectionClients, it's fine for them to just reference the client directly.
This commit is contained in:
@@ -295,7 +295,7 @@ void WSClientConnection::handle_request(WSAPIGetWindowRectRequest& request)
|
||||
void WSClientConnection::handle_request(WSAPICreateWindowRequest& request)
|
||||
{
|
||||
int window_id = m_next_window_id++;
|
||||
auto window = make<WSWindow>(request.client_id(), window_id);
|
||||
auto window = make<WSWindow>(*this, window_id);
|
||||
window->set_title(request.title());
|
||||
window->set_rect(request.rect());
|
||||
m_windows.set(window_id, move(window));
|
||||
|
||||
Reference in New Issue
Block a user