request frame change in notification

This commit is contained in:
David Kocik 2021-02-08 17:42:20 +01:00
parent 32dd1f6e7c
commit 80f0d305c1
2 changed files with 26 additions and 15 deletions

View file

@ -222,7 +222,7 @@ private:
bool compare_text(const std::string& text);
void hide(bool h) { m_state = h ? EState::Hidden : EState::Unknown; }
// sets m_next_render with time of next mandatory rendering. Delta is time since last render.
void update_state(bool paused, const int64_t delta);
bool update_state(bool paused, const int64_t delta);
int64_t next_render() const { return is_finished() ? 0 : m_next_render; }
EState get_state() const { return m_state; }
bool is_hovered() const { return m_state == EState::Hovered; }
@ -413,6 +413,7 @@ private:
bool m_move_from_overlay { false };
// Timestamp of last rendering
int64_t m_last_render { 0LL };
int64_t m_last_update { 0LL };
//prepared (basic) notifications
const std::vector<NotificationData> basic_notifications = {