kernel: event_queue: check for filter match when triggering an event

This commit is contained in:
psucien 2024-06-18 10:02:28 +02:00
parent b23d17696b
commit a5d22b8151
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ bool EqueueInternal::triggerEvent(u64 ident, s16 filter, void* trigger_data) {
std::scoped_lock lock{m_mutex};
for (auto& event : m_events) {
if (event.event.ident == ident) { // event filter?
if (event.event.ident == ident && event.event.filter == filter) {
event.Trigger(trigger_data);
}
}