request frame with delay when new notification pushed

This commit is contained in:
David Kocik 2021-01-07 13:33:05 +01:00
parent c61a6289c5
commit df59f9497a

View File

@ -1233,11 +1233,11 @@ bool NotificationManager::push_notification_data(std::unique_ptr<NotificationMan
if (this->activate_existing(notification.get())) { if (this->activate_existing(notification.get())) {
m_pop_notifications.back()->update(notification->get_data()); m_pop_notifications.back()->update(notification->get_data());
canvas.request_extra_frame(); canvas.request_extra_frame_delayed(33);
return false; return false;
} else { } else {
m_pop_notifications.emplace_back(std::move(notification)); m_pop_notifications.emplace_back(std::move(notification));
canvas.request_extra_frame(); canvas.request_extra_frame_delayed(33);
return true; return true;
} }
} }