Fixed events filtering
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9252 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1272,14 +1272,14 @@ InputServer::FilterEvents(BList *eventsToFilter)
|
|||||||
if (NULL == eventsToFilter)
|
if (NULL == eventsToFilter)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
BInputServerFilter* current_filter;
|
BInputServerFilter *current_filter;
|
||||||
BMessage* current_event;
|
|
||||||
int32 filter_index = 0;
|
int32 filter_index = 0;
|
||||||
int32 event_index = 0;
|
|
||||||
|
|
||||||
while (NULL != (current_filter = (BInputServerFilter*)gInputFilterList.ItemAt(filter_index) ) ) {
|
while (NULL != (current_filter = (BInputServerFilter*)gInputFilterList.ItemAt(filter_index) ) ) {
|
||||||
// Apply the current filter to all available event messages.
|
// Apply the current filter to all available event messages.
|
||||||
//
|
//
|
||||||
|
int32 event_index = 0;
|
||||||
|
BMessage *current_event;
|
||||||
while (NULL != (current_event = (BMessage*)eventsToFilter->ItemAt(event_index) ) ) {
|
while (NULL != (current_event = (BMessage*)eventsToFilter->ItemAt(event_index) ) ) {
|
||||||
// Storage for new event messages generated by the filter.
|
// Storage for new event messages generated by the filter.
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user