From 7199d4c847fb33983eeddc11153982a3f3624b1e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 1 Nov 2016 17:51:25 -0400 Subject: [PATCH] More notes. --- darwin/winmoveresize.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/darwin/winmoveresize.m b/darwin/winmoveresize.m index 69abc700..834cff74 100644 --- a/darwin/winmoveresize.m +++ b/darwin/winmoveresize.m @@ -90,6 +90,8 @@ struct onResizeDragParams { NSSize max; }; +// because we are changing the window frame each time the mouse moves, the successive -[NSEvent locationInWindow]s cannot be meaningfully used together +// make sure they are all following some sort of standard to avoid this problem; the screen is the most obvious possibility since it requires only one conversion (the only one that a NSWindow provides) static NSPoint makeIndependent(NSPoint p, NSWindow *w) { NSRect r; @@ -155,6 +157,7 @@ NSLog(@"becomes %@", NSStringFromRect(frame)); [p->w setFrame:frame display:YES]; // and do reflect the new frame immediately } +// TODO do our events get fired with this? *should* they? void doManualResize(NSWindow *w, NSEvent *initialEvent, uiWindowResizeEdge edge) { __block struct onResizeDragParams rdp;