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:
@@ -1711,8 +1711,11 @@ InputServer::_FilterEvent(BInputServerFilter* filter, EventList& events,
|
|||||||
delete event;
|
delete event;
|
||||||
|
|
||||||
if (result == B_DISPATCH_MESSAGE) {
|
if (result == B_DISPATCH_MESSAGE) {
|
||||||
|
EventList addedEvents;
|
||||||
|
addedEvents.AsBList()->AddList(&newEvents);
|
||||||
|
_SanitizeEvents(addedEvents);
|
||||||
// add the new events - but don't methodize them again
|
// add the new events - but don't methodize them again
|
||||||
events.AsBList()->AddList(&newEvents, index);
|
events.AddList(&addedEvents, index);
|
||||||
index += newEvents.CountItems();
|
index += newEvents.CountItems();
|
||||||
count = events.CountItems();
|
count = events.CountItems();
|
||||||
} else
|
} else
|
||||||
|
|||||||
Reference in New Issue
Block a user