mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-07-06 03:29:01 +00:00
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;
|
||||
}
|
||||
} else {
|
||||
if (type != NSApplicationDefined) { // These get spammy.
|
||||
#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
|
||||
[super sendEvent:anEvent];
|
||||
[super sendEvent:anEvent];
|
||||
}
|
||||
}
|
||||
|
||||
NS_OBJC_END_TRY_ABORT_BLOCK;
|
||||
|
Loading…
Reference in New Issue
Block a user