summaryrefslogtreecommitdiff
path: root/src/input_handler.cc
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-11-12 20:31:12 +0000
committerMaxime Coste <frrrwww@gmail.com>2014-11-12 20:31:12 +0000
commit3f733569ede4bc28365ca6515efbd7cdf2e52082 (patch)
treee15a200b491e450dc1bd067f9c41e5c0eea58f22 /src/input_handler.cc
parentfab9c92006beabf8bfd521a9a46bdad9e87e0402 (diff)
Fix case where a context ends up locked in no-hooks mode
Diffstat (limited to 'src/input_handler.cc')
-rw-r--r--src/input_handler.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/input_handler.cc b/src/input_handler.cc
index b51eaac4..16f482d6 100644
--- a/src/input_handler.cc
+++ b/src/input_handler.cc
@@ -103,8 +103,11 @@ public:
m_count /= 10;
else if (key == '\\')
{
- m_hooks_disabled = true;
- context().disable_user_hooks();
+ if (not m_hooks_disabled)
+ {
+ m_hooks_disabled = true;
+ context().disable_user_hooks();
+ }
}
else
{