also sanitize events added by filters, to be checked with methods too.

this fixes bug #2611


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27162 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2008-08-22 22:30:11 +00:00
parent 07c052f765
commit 97686ecc7a
+4 -1
View File
@@ -1711,8 +1711,11 @@ InputServer::_FilterEvent(BInputServerFilter* filter, EventList& events,
delete event;
if (result == B_DISPATCH_MESSAGE) {
EventList addedEvents;
addedEvents.AsBList()->AddList(&newEvents);
_SanitizeEvents(addedEvents);
// add the new events - but don't methodize them again
events.AsBList()->AddList(&newEvents, index);
events.AddList(&addedEvents, index);
index += newEvents.CountItems();
count = events.CountItems();
} else