summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorAtharva Kulkarni <atharvak1910@gmail.com>2022-07-12 20:24:49 +0530
committerLinus Groh <mail@linusgroh.de>2022-07-13 17:03:44 +0100
commit3f93aec7207b646cf7b125a86451a028fc8e766a (patch)
treece8bcf57993a68780207c960b97c2e01cc4300b3 /Userland/Services
parentd2b887a793397a7a22c7ba50e7f6cb704f809446 (diff)
downloadserenity-3f93aec7207b646cf7b125a86451a028fc8e766a.zip
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
Diffstat (limited to 'Userland/Services')
-rw-r--r--Userland/Services/NotificationServer/NotificationWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/NotificationServer/NotificationWindow.cpp b/Userland/Services/NotificationServer/NotificationWindow.cpp
index 4cd33a297c..35ad6b2b69 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)