diff options
author | marc_culler <marc.culler@gmail.com> | 2021-11-20 16:34:37 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2021-11-20 16:34:37 (GMT) |
commit | fb22080450503ed89f9ce39e4f7f7165a3e21ec7 (patch) | |
tree | f27a8bd0540d0edf2616fd45198505bf901c14bc /macosx/tkMacOSXWindowEvent.c | |
parent | 4ec144490d8da9b026573ae371644d340e94c44a (diff) | |
download | tk-fb22080450503ed89f9ce39e4f7f7165a3e21ec7.zip tk-fb22080450503ed89f9ce39e4f7f7165a3e21ec7.tar.gz tk-fb22080450503ed89f9ce39e4f7f7165a3e21ec7.tar.bz2 |
Trying to receive motion events when the mouse leaves the window.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 9c78f3e..8b0e92b 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -989,6 +989,9 @@ ConfigureRestrictProc( trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] options:(NSTrackingMouseEnteredAndExited | + NSTrackingMouseMoved | + NSTrackingEnabledDuringMouseDrag | + NSTrackingInVisibleRect | NSTrackingActiveAlways) owner:self userInfo:nil]; @@ -1366,14 +1369,18 @@ static const char *const accentNames[] = { return [super validRequestorForSendType:sendType returnType:returnType]; } -- (void)updateTrackingAreas { +- (void)XXXupdateTrackingAreas { + printf("Call to updateTrackingAreas\n"); [self removeTrackingArea:trackingArea]; [trackingArea release]; trackingArea = [[NSTrackingArea alloc] initWithRect:[self bounds] - options: (NSTrackingMouseEnteredAndExited | - NSTrackingActiveAlways) - owner:self + options:(NSTrackingMouseEnteredAndExited | + NSTrackingMouseMoved | + NSTrackingEnabledDuringMouseDrag | + NSTrackingInVisibleRect | + NSTrackingActiveAlways) + owner:NSApp userInfo:nil]; [self addTrackingArea:trackingArea]; |