diff options
author | culler <culler> | 2020-09-05 20:33:03 (GMT) |
---|---|---|
committer | culler <culler> | 2020-09-05 20:33:03 (GMT) |
commit | d10c9fecddbfd053dbabca48b2c47785a1204b2f (patch) | |
tree | 53df6fe64a94c92e1a171ab1862c23a0fb7b5946 | |
parent | deb22dbee2982870a5144c9e5ceaa5cd2b8cc32e (diff) | |
download | tk-d10c9fecddbfd053dbabca48b2c47785a1204b2f.zip tk-d10c9fecddbfd053dbabca48b2c47785a1204b2f.tar.gz tk-d10c9fecddbfd053dbabca48b2c47785a1204b2f.tar.bz2 |
One more trick.
-rw-r--r-- | macosx/tkMacOSXMouseEvent.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c index 3121c87..a12848f 100644 --- a/macosx/tkMacOSXMouseEvent.c +++ b/macosx/tkMacOSXMouseEvent.c @@ -62,7 +62,7 @@ enum { #ifdef TK_MAC_DEBUG_EVENTS TKLog(@"-[%@(%p) %s] %@", [self class], self, _cmd, theEvent); #endif - + if (eventWindow) { NSRect viewFrame = [[eventWindow contentView] frame]; NSPoint location = [theEvent locationInWindow]; @@ -80,18 +80,15 @@ enum { case NSMouseEntered: if (!inTitleBar) { [(TKWindow *)eventWindow setMouseInResizeArea:YES]; - break; } + break; case NSMouseExited: - if (! inTitleBar) { - [(TKWindow *)eventWindow setMouseInResizeArea:NO]; - break; - } + [(TKWindow *)eventWindow setMouseInResizeArea:NO]; break; case NSLeftMouseUp: case NSRightMouseUp: case NSOtherMouseUp: - case NSMouseMoved: + case NSMouseMoved: case NSCursorUpdate: case NSTabletPoint: case NSTabletProximity: @@ -115,7 +112,7 @@ enum { /* * Ignore button presses and releases that occur in the title bar. */ - + if ((eventType == NSLeftMouseDown || eventType == NSLeftMouseUp) && inTitleBar) { return theEvent; |