dont send events for a view which is already destroyed
authorClaus Gittinger <cg@exept.de>
Wed, 19 Mar 1997 15:32:49 +0100
changeset 1463 d39e690f218f
parent 1462 f8b2909deb3c
child 1464 e2716325d697
dont send events for a view which is already destroyed (late events)
WEvent.st
WindowEvent.st
--- a/WEvent.st	Wed Mar 19 13:59:56 1997 +0100
+++ b/WEvent.st	Wed Mar 19 15:32:49 1997 +0100
@@ -316,6 +316,14 @@
         ].
     ].
 
+    (isKeyEvent 
+     or:[isButtonEvent 
+     or:[isPointerEvent]]) ifTrue:[
+        view realized ifFalse:[
+            ^ self
+        ]
+    ].
+
     "
      if there is a controller, that one gets all user events
     "
@@ -355,7 +363,7 @@
 
     eventReceiver perform:selector withArguments:argArray
 
-    "Modified: 5.3.1997 / 14:06:43 / cg"
+    "Modified: 19.3.1997 / 15:25:01 / cg"
 ! !
 
 !WindowEvent methodsFor:'accessing'!
@@ -555,5 +563,5 @@
 !WindowEvent class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Attic/WEvent.st,v 1.34 1997-03-05 13:06:52 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Attic/WEvent.st,v 1.35 1997-03-19 14:32:49 cg Exp $'
 ! !
--- a/WindowEvent.st	Wed Mar 19 13:59:56 1997 +0100
+++ b/WindowEvent.st	Wed Mar 19 15:32:49 1997 +0100
@@ -316,6 +316,14 @@
         ].
     ].
 
+    (isKeyEvent 
+     or:[isButtonEvent 
+     or:[isPointerEvent]]) ifTrue:[
+        view realized ifFalse:[
+            ^ self
+        ]
+    ].
+
     "
      if there is a controller, that one gets all user events
     "
@@ -355,7 +363,7 @@
 
     eventReceiver perform:selector withArguments:argArray
 
-    "Modified: 5.3.1997 / 14:06:43 / cg"
+    "Modified: 19.3.1997 / 15:25:01 / cg"
 ! !
 
 !WindowEvent methodsFor:'accessing'!
@@ -555,5 +563,5 @@
 !WindowEvent class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/WindowEvent.st,v 1.34 1997-03-05 13:06:52 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/WindowEvent.st,v 1.35 1997-03-19 14:32:49 cg Exp $'
 ! !