[kaffe] CVS kaffe (dalibor): Fixed postEvent for top-level components
Kaffe CVS
cvs-commits at kaffe.org
Thu Sep 16 08:53:31 PDT 2004
PatchSet 5174
Date: 2004/09/16 15:49:15
Author: dalibor
Branch: HEAD
Tag: (none)
Log:
Fixed postEvent for top-level components
2004-09-16 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/awt/Component.java (postEvent):
Only delegate to parent if a parent exists.
Reported by: Stephane Meslin-Weber <steph at tangency.co.uk>
Members:
ChangeLog:1.2729->1.2730
libraries/javalib/java/awt/Component.java:1.37->1.38
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2729 kaffe/ChangeLog:1.2730
--- kaffe/ChangeLog:1.2729 Wed Sep 15 19:30:22 2004
+++ kaffe/ChangeLog Thu Sep 16 15:49:15 2004
@@ -1,3 +1,10 @@
+2004-09-16 Dalibor Topic <robilad at kaffe.org>
+
+ * libraries/javalib/java/awt/Component.java (postEvent):
+ Only delegate to parent if a parent exists.
+
+ Reported by: Stephane Meslin-Weber <steph at tangency.co.uk>
+
2004-09-15 Dalibor Topic <robilad at kaffe.org>
* libraries/javalib/java/lang/System.java:
Index: kaffe/libraries/javalib/java/awt/Component.java
diff -u kaffe/libraries/javalib/java/awt/Component.java:1.37 kaffe/libraries/javalib/java/awt/Component.java:1.38
--- kaffe/libraries/javalib/java/awt/Component.java:1.37 Sun Sep 12 16:53:07 2004
+++ kaffe/libraries/javalib/java/awt/Component.java Thu Sep 16 15:49:17 2004
@@ -2270,7 +2270,7 @@
{
boolean handled = handleEvent (e);
- if (!handled)
+ if (!handled && getParent() != null)
// FIXME: need to translate event coordinates to parent's
// coordinate space.
handled = getParent ().postEvent (e);
More information about the kaffe
mailing list