1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:47:44 +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:
sin-ack 2021-11-03 08:02:04 +00:00 committed by Andreas Kling
parent 5537334f66
commit edb3e71c1b

View file

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