diff --git a/darwin/main.m b/darwin/main.m index 736eff12..5516723f 100644 --- a/darwin/main.m +++ b/darwin/main.m @@ -5,6 +5,13 @@ static BOOL canQuit = NO; @implementation applicationClass +- (void)sendEvent:(NSEvent *)e +{ + if (sendAreaEvents(e) != 0) + return; + [super sendEvent:e]; +} + // hey look! we're overriding terminate:! // we're going to make sure we can go back to main() whether Cocoa likes it or not! // and just how are we going to do that, hm? diff --git a/test/page6.c b/test/page6.c index db88cd8d..332b2e66 100644 --- a/test/page6.c +++ b/test/page6.c @@ -19,7 +19,7 @@ static void handlerDraw(uiAreaHandler *a, uiArea *area, uiAreaDrawParams *p) static void handlerMouseEvent(uiAreaHandler *a, uiArea *area, uiAreaMouseEvent *e) { - printf("mouse (%g,%g):(%g,%g) down:%d up:%d count:%d mods:%x held:%" PRIu64 "x\n", + printf("mouse (%g,%g):(%g,%g) down:%d up:%d count:%d mods:%x held:0x%" PRIX64 "\n", e->X, e->Y, e->AreaWidth,