1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

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
This commit is contained in:
Atharva Kulkarni 2022-07-12 20:24:49 +05:30 committed by Linus Groh
parent d2b887a793
commit 3f93aec720

View file

@ -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)