mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +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:
committed by
Linus Groh
parent
d2b887a793
commit
3f93aec720
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user