diff --git a/Userland/Libraries/LibCore/Object.h b/Userland/Libraries/LibCore/Object.h index 26eaaf8549..c5f83ecd9e 100644 --- a/Userland/Libraries/LibCore/Object.h +++ b/Userland/Libraries/LibCore/Object.h @@ -70,8 +70,6 @@ public: \ static inline NonnullRefPtr construct(Args&&... args) \ { \ auto obj = adopt_ref(*new Klass(forward(args)...)); \ - if constexpr (requires { declval().did_construct(); }) \ - obj->did_construct(); \ return obj; \ } diff --git a/Userland/Services/WindowServer/Window.cpp b/Userland/Services/WindowServer/Window.cpp index 6b7394c933..c33acde106 100644 --- a/Userland/Services/WindowServer/Window.cpp +++ b/Userland/Services/WindowServer/Window.cpp @@ -85,6 +85,7 @@ Window::Window(Core::Object& parent, WindowType type) m_minimum_size = s_default_normal_minimum_size; WindowManager::the().add_window(*this); + frame().window_was_constructed({}); } Window::Window(ClientConnection& client, WindowType window_type, int window_id, bool modal, bool minimizable, bool closeable, bool frameless, bool resizable, bool fullscreen, bool accessory, Window* parent_window) diff --git a/Userland/Services/WindowServer/Window.h b/Userland/Services/WindowServer/Window.h index 760ce6ddb8..ea88cff971 100644 --- a/Userland/Services/WindowServer/Window.h +++ b/Userland/Services/WindowServer/Window.h @@ -362,11 +362,6 @@ public: const Vector& screens() const { return m_screens; } Vector& screens() { return m_screens; } - void did_construct() - { - frame().window_was_constructed({}); - } - void set_moving_to_another_stack(bool value) { m_moving_to_another_stack = value; } bool is_moving_to_another_stack() const { return m_moving_to_another_stack; }