diff options
author | culler <culler> | 2024-05-19 02:41:36 (GMT) |
---|---|---|
committer | culler <culler> | 2024-05-19 02:41:36 (GMT) |
commit | d2ef41555d8bb64bf21f2065a56365aa840cda77 (patch) | |
tree | b7a3353a36dceb8b2b929e5878c7f985e3a8484d /macosx/tkMacOSXWindowEvent.c | |
parent | 02d498ccf2b050f515631e77d628b1cb683e7be3 (diff) | |
download | tk-d2ef41555d8bb64bf21f2065a56365aa840cda77.zip tk-d2ef41555d8bb64bf21f2065a56365aa840cda77.tar.gz tk-d2ef41555d8bb64bf21f2065a56365aa840cda77.tar.bz2 |
Attempt to fix [22349fc78a] for macOS. Currently only event-9.16 fails unless there is a timeout waiting for an enter or leave event.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 09112ee..4e40bb6 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -74,6 +74,8 @@ extern NSString *NSWindowDidOrderOffScreenNotification; NSView *view = [w contentView]; NSPoint viewLocation = [view convertPoint:location fromView:nil]; if (NSPointInRect(viewLocation, NSInsetRect([view bounds], 2, 2))) { + fprintf(stderr, "windowActivation calling TkUpdatePointer\n"); + fflush(stderr); Tk_UpdatePointer((Tk_Window) winPtr, x, y, [NSApp tkButtonState]); } } |