#BUGFIX by cg expecco_head_5844
authorClaus Gittinger <cg@exept.de>
Mon, 03 Apr 2017 12:10:45 +0200
changeset 7992 449abf3b7d08
parent 7991 09cc63f1c5c8
child 7995 2538002b8ba4
#BUGFIX by cg class: WindowSensor changed: #updateModifierStateFrom:device:
WindowSensor.st
--- a/WindowSensor.st	Tue Mar 28 14:29:29 2017 +0200
+++ b/WindowSensor.st	Mon Apr 03 12:10:45 2017 +0200
@@ -2058,6 +2058,9 @@
 
     |state|
 
+    "/ prevent race condition, if sent from pointerEnter, but view is closed there.
+    aDevice isNil ifTrue:[^ self].
+    
     "/ Prevents wrong behavior in the following scenario:
     "/    ctrl is pressed in a view
     "/    pointer is moved out of view
@@ -2089,7 +2092,7 @@
     rightButtonDown := (state bitAnd:(aDevice rightButtonStateMask)) ~~ 0.
 
     "Created: / 27-02-1996 / 14:54:38 / cg"
-    "Modified: / 10-02-2017 / 22:32:31 / cg"
+    "Modified: / 03-04-2017 / 12:09:21 / cg"
 !
 
 updateModifierStatesFrom:anotherSensor