[squeak-dev] The Trunk: Kernel-mt.989.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Feb 16 09:28:40 UTC 2016

Marcel Taeumel uploaded a new version of Kernel to project The Trunk:

==================== Summary ====================

Name: Kernel-mt.989
Author: mt
Time: 16 February 2016, 10:28:16.317748 am
UUID: c658e246-d184-42ce-83dd-7d6f40184726
Ancestors: Kernel-mt.988

Condense ways of peeking the mouse cursor position. Avoid flushing other mouse events when peeking the mouse position. Useful for the profiler.

Note that it is still discouraged to peek the mouse position in Morphic code. We might want to upate all senders of #cursorPoint and #peekPosition.

=============== Diff against Kernel-mt.988 ===============

Item was changed:
  ----- Method: EventSensor>>cursorPoint (in category 'cursor') -----
  	"Answer a Point indicating the cursor location."
+ 	^ self peekPosition!
- 	^self mousePoint!

Item was removed:
- ----- Method: EventSensor>>mousePoint (in category 'mouse') -----
- mousePoint
- 	"Answer a Point indicating the coordinates of the current mouse location."
- 	^self primMousePt!

Item was changed:
  ----- Method: EventSensor>>peekPosition (in category 'accessing') -----
+ 	^ self primMousePt!
- 	self fetchMoreEvents.
- 	^mousePosition!

Item was changed:
  ----- Method: EventSensor>>primMousePt (in category 'private') -----
  	self fetchMoreEvents.
+ 	"self flushNonKbdEvents. -- mt: Should not be necessary here."
- 	self flushNonKbdEvents.
  	^ mousePosition!

More information about the Squeak-dev mailing list