diff options
| author | Maxime Coste <mawww@kakoune.org> | 2020-12-20 11:32:15 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2020-12-20 11:32:15 +1100 |
| commit | e50b5fe13775f98e337b5521719813736cb9fe18 (patch) | |
| tree | ba85eebad577ac9b248f37d8ed38cb6bb9eae340 /src/input_handler.cc | |
| parent | c99731ebf134e9c526f205b79ca061dc82cdb3df (diff) | |
Add Timer::disable() to be more explicit than set_next_date(TimePoint::max())
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index 14f9240b..b75efd94 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -214,8 +214,8 @@ public: void on_disabled(bool temporary) override { - m_idle_timer.set_next_date(TimePoint::max()); - m_fs_check_timer.set_next_date(TimePoint::max()); + m_idle_timer.disable(); + m_fs_check_timer.disable(); if (not temporary and m_hooks_disabled) { @@ -1136,7 +1136,7 @@ private: if (not temporary) context().print_status({}); - m_idle_timer.set_next_date(TimePoint::max()); + m_idle_timer.disable(); if (context().has_client()) context().client().menu_hide(); } @@ -1239,7 +1239,7 @@ public: void on_disabled(bool temporary) override { - m_idle_timer.set_next_date(TimePoint::max()); + m_idle_timer.disable(); if (not temporary) { |
