summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
}