[squeak-dev] The Trunk: Morphic-mt.1682.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Sep 17 11:11:54 UTC 2020


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1682.mcz

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

Name: Morphic-mt.1682
Author: mt
Time: 17 September 2020, 1:11:51.011573 pm
UUID: af1dbefd-44de-e849-b99d-a8d62204a9fc
Ancestors: Morphic-dtl.1681

Fixes come-to-front bug in dialog windows. No behaves like system windows do.

=============== Diff against Morphic-dtl.1681 ===============

Item was added:
+ ----- Method: DialogWindow>>handleMouseDown: (in category 'events') -----
+ handleMouseDown: event
+ 	"Always bring me to the front since I am modal"
+ 	
+ 	self comeToFront.
+ 	^ super handleMouseDown: event!

Item was changed:
  ----- Method: DialogWindow>>mouseDown: (in category 'events') -----
  mouseDown: event
  
  	self stopAutoTrigger.
- 
- 	"Always bring me to the front since I am modal"
- 	self comeToFront.
  	
  	(self containsPoint: event position) ifFalse: [
  		^ self autoCancel
  			ifTrue: [self cancelDialog]
  			ifFalse: [self flash]].
  	
  	event hand 
  		waitForClicksOrDrag: self 
  		event: event 
  		selectors: { nil. nil. nil. #startDrag: }
  		threshold: HandMorph dragThreshold.!



More information about the Squeak-dev mailing list