diff options
Diffstat (limited to 'src/input_handler.cc')
| -rw-r--r-- | src/input_handler.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc index f57f0029..51c88b57 100644 --- a/src/input_handler.cc +++ b/src/input_handler.cc @@ -200,8 +200,7 @@ public: void on_key(Key key) override { - m_in_on_key.set(); - auto unset_in_on_key = on_scope_end([this]{ m_in_on_key.unset(); }); + ScopedSetBool set_in_on_key{m_in_on_key}; bool do_restore_hooks = false; auto restore_hooks = on_scope_end([&, this]{ |
