From 9ba7a9029c330d8993ad3ae6d199bfe8809889fa Mon Sep 17 00:00:00 2001 From: Cameron Kaiser Date: Sat, 23 Sep 2017 22:05:22 -0700 Subject: [PATCH] #72: let's try looking at this a different way (debug only) --- widget/cocoa/nsCocoaWindow.mm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widget/cocoa/nsCocoaWindow.mm b/widget/cocoa/nsCocoaWindow.mm index aee46706b..4008a2a06 100644 --- a/widget/cocoa/nsCocoaWindow.mm +++ b/widget/cocoa/nsCocoaWindow.mm @@ -4109,14 +4109,16 @@ TitlebarDrawCallback(void* aInfo, CGContextRef aContext) break; default: #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 [super sendEvent:anEvent]; break; } } else { #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 [super sendEvent:anEvent]; }