From d5e125006101e5a8d7c795e4fa893866f0544c2a Mon Sep 17 00:00:00 2001 From: Valtteri Koskivuori Date: Mon, 12 Apr 2021 19:09:00 +0300 Subject: [PATCH] WindowServer: Fix notification placement No more top bar, no more extra padding. Spacing is equal on the top and on the left, so it looks pretty tidy. --- Userland/Services/NotificationServer/NotificationWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp index 2cfc391304..577b23e0a5 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.cpp +++ b/Userland/Services/NotificationServer/NotificationWindow.cpp @@ -46,7 +46,7 @@ static void update_notification_window_locations(const Gfx::IntRect& screen_rect auto& window = window_entry.value; Gfx::IntPoint new_window_location; if (last_window_rect.is_null()) - new_window_location = screen_rect.top_right().translated(-window->rect().width() - 24, 26); + new_window_location = screen_rect.top_right().translated(-window->rect().width() - 24, 7); else new_window_location = last_window_rect.bottom_left().translated(0, 10); if (window->rect().location() != new_window_location) { @@ -76,7 +76,7 @@ NotificationWindow::NotificationWindow(i32 client_id, const String& text, const Gfx::IntRect rect; rect.set_width(220); rect.set_height(40); - rect.set_location(GUI::Desktop::the().rect().top_right().translated(-rect.width() - 24, 26)); + rect.set_location(GUI::Desktop::the().rect().top_right().translated(-rect.width() - 24, 7)); if (!lowest_notification_rect_on_screen.is_null()) rect.set_location(lowest_notification_rect_on_screen.bottom_left().translated(0, 10));