passing NSApplicationDefined messages to super is just wasteful

This commit is contained in:
Cameron Kaiser 2018-07-14 11:02:13 -07:00
parent 624109f857
commit 9620d6aa0b
1 changed files with 4 additions and 2 deletions

View File

@ -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;