passing NSApplicationDefined messages to super is just wasteful
This commit is contained in:
parent
624109f857
commit
9620d6aa0b
|
@ -4147,10 +4147,12 @@ static inline bool CheckForMisplacedMenuEventLeopard(NSEvent *anEvent) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (type != NSApplicationDefined) { // These get spammy.
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
fprintf(stderr, "no target for this event (%i)! sending to super\n", type);
|
fprintf(stderr, "no target for this event (%i)! sending to super\n", type);
|
||||||
#endif
|
#endif
|
||||||
[super sendEvent:anEvent];
|
[super sendEvent:anEvent];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||||
|
|
Loading…
Reference in New Issue