summaryrefslogtreecommitdiff
path: root/src/inputprocessor.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2016-06-14 23:16:41 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-06-14 23:16:41 +0200
commit149d86611985b7a382994ac684d555660927e8d2 (patch)
tree1da8f61f3bef4a8520592af990d67a27fbe37848 /src/inputprocessor.cc
parent9453078f2d66fad806ee104e7c6993bba1043c6a (diff)
Make code from last commit a little more explicit.
Diffstat (limited to 'src/inputprocessor.cc')
-rw-r--r--src/inputprocessor.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inputprocessor.cc b/src/inputprocessor.cc
index b59f0e5..af07dad 100644
--- a/src/inputprocessor.cc
+++ b/src/inputprocessor.cc
@@ -132,7 +132,10 @@ bool InputProcessor::processOnset(event_t& event,
for(auto& filter : filters)
{
- if(!filter->filter(event, event.offset + pos))
+ // This line might change the 'event' variable
+ bool keep = filter->filter(event, event.offset + pos);
+
+ if(!keep)
{
return false; // Skip event completely
}