#72: let's try looking at this a different way (debug only)

This commit is contained in:
Cameron Kaiser 2017-09-23 22:05:22 -07:00
parent b10941349c
commit 9ba7a9029c

View File

@ -4109,14 +4109,16 @@ TitlebarDrawCallback(void* aInfo, CGContextRef aContext)
break; break;
default: default:
#if DEBUG #if DEBUG
fprintf(stderr, "don't know this event type! sending to super\n"); NSPoint y = nsCocoaUtils::ScreenLocationForEvent(anEvent);
float l = nsCocoaUtils::FlippedScreenY(y.y);
fprintf(stderr, "don't know this event type (%i) (y=%f)! sending to super\n", type, l);
#endif #endif
[super sendEvent:anEvent]; [super sendEvent:anEvent];
break; break;
} }
} else { } else {
#if DEBUG #if DEBUG
fprintf(stderr, "no target for this event! sending to super\n"); fprintf(stderr, "no target for this event (%i)! sending to super\n", type);
#endif #endif
[super sendEvent:anEvent]; [super sendEvent:anEvent];
} }