diff options
author | culler <culler> | 2020-09-06 20:35:28 (GMT) |
---|---|---|
committer | culler <culler> | 2020-09-06 20:35:28 (GMT) |
commit | 26cc1c7a65e49782d799cd635733bb0a132545eb (patch) | |
tree | dc7a7a7d515bc7566eeaa3bbe667984f7888a413 /macosx | |
parent | c7622ae4dc2d427140072764e7b49861d0ed9627 (diff) | |
download | tk-26cc1c7a65e49782d799cd635733bb0a132545eb.zip tk-26cc1c7a65e49782d799cd635733bb0a132545eb.tar.gz tk-26cc1c7a65e49782d799cd635733bb0a132545eb.tar.bz2 |
Don't process events which have no meaning to Tk.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXMouseEvent.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/macosx/tkMacOSXMouseEvent.c b/macosx/tkMacOSXMouseEvent.c index 40e6332..493e63f 100644 --- a/macosx/tkMacOSXMouseEvent.c +++ b/macosx/tkMacOSXMouseEvent.c @@ -78,9 +78,6 @@ enum { break; case NSRightMouseDown: case NSOtherMouseDown: - case NSLeftMouseDragged: - case NSRightMouseDragged: - case NSOtherMouseDragged: buttonState |= TkGetButtonMask(button); break; case NSMouseEntered: @@ -94,12 +91,17 @@ enum { case NSLeftMouseUp: case NSLeftMouseDown: case NSMouseMoved: + case NSScrollWheel: +#if 0 case NSCursorUpdate: + case NSLeftMouseDragged: + case NSRightMouseDragged: + case NSOtherMouseDragged: case NSTabletPoint: case NSTabletProximity: - case NSScrollWheel: +#endif break; - default: /* Unrecognized mouse event. */ + default: /* This type of event is ignored. */ return theEvent; } @@ -113,7 +115,7 @@ enum { if ([(TKWindow *)eventWindow mouseInResizeArea] && ([eventWindow styleMask] & NSResizableWindowMask)) { - /* + /* * When the left button is pressed in the resize area, we receive * NSMouseDown, but when it is released we do not receive * NSMouseUp. So ignore the event and clear the button state but |