diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp index 90ba33116c..b9ae0d9b6a 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.cpp +++ b/Userland/Services/NotificationServer/NotificationWindow.cpp @@ -41,7 +41,6 @@ static void update_notification_window_locations(Gfx::IntRect const& screen_rect NotificationWindow::NotificationWindow(i32 client_id, DeprecatedString const& text, DeprecatedString const& title, Gfx::ShareableBitmap const& icon) { m_id = client_id; - s_windows.set(m_id, this); set_window_type(GUI::WindowType::Notification); set_resizable(false); @@ -55,6 +54,8 @@ NotificationWindow::NotificationWindow(i32 client_id, DeprecatedString const& te lowest_notification_rect_on_screen = window->m_original_rect; } + s_windows.set(m_id, this); + Gfx::IntRect rect; rect.set_width(220); rect.set_height(40);