From 3f93aec7207b646cf7b125a86451a028fc8e766a Mon Sep 17 00:00:00 2001 From: Atharva Kulkarni Date: Tue, 12 Jul 2022 20:24:49 +0530 Subject: [PATCH] NotificationServer: Move notifications down if hovered Currently in case of multiple notifications, the notifications are drawn on top of each other when expanded. The change moves the notificaiton below other notifications --- Userland/Services/NotificationServer/NotificationWindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp index 4cd33a297ce..35ad6b2b690 100644 --- a/Userland/Services/NotificationServer/NotificationWindow.cpp +++ b/Userland/Services/NotificationServer/NotificationWindow.cpp @@ -118,6 +118,7 @@ void NotificationWindow::enter_event(Core::Event&) m_hovering = true; resize_to_fit_text(); move_to_front(); + update_notification_window_locations(GUI::Desktop::the().rect()); } void NotificationWindow::leave_event(Core::Event&) @@ -125,6 +126,7 @@ void NotificationWindow::leave_event(Core::Event&) m_hovering = false; m_text_label->set_preferred_height(GUI::SpecialDimension::Grow); set_height(40); + update_notification_window_locations(GUI::Desktop::the().rect()); } void NotificationWindow::set_text(String const& value)