mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
WindowServer: Add missing window_was_constructed call
In 2e6bb987a3
the "did_construct" API in
Core::Object was removed, since it had only one user. For a replacement,
the Window would manually call the frame's "frame_was_constructed"
method. However, WindowServer::Window has two constructors, and only one
of them called this method. This caused windows to spawn without
buttons and various other breakage that spawned from this.
This commit is contained in:
parent
5537334f66
commit
edb3e71c1b
1 changed files with 1 additions and 0 deletions
|
@ -111,6 +111,7 @@ Window::Window(ClientConnection& client, WindowType window_type, int window_id,
|
|||
if (parent_window)
|
||||
set_parent_window(*parent_window);
|
||||
WindowManager::the().add_window(*this);
|
||||
frame().window_was_constructed({});
|
||||
}
|
||||
|
||||
Window::~Window()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue