2002/10/30 22:01:04
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:49 +0000 (06:50 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 06:50:49 +0000 (06:50 +0000)
darcs-hash:20040130065049-2ba56-d11831712682ea59dfa360d1ef423f0dc4526aec.gz

CHANGES
src/org/xwt/SpecialBoxProperty.java

diff --git a/CHANGES b/CHANGES
index 2f3eecd..1a1d746 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
 15-Oct megacz Arguments.java, Trap.java: arguments.trapname
 
+30-Oct megacz SpecialBoxProperty.java: fixed mouse event propagation
+
index 7488199..095cc6f 100644 (file)
@@ -480,11 +480,13 @@ class SpecialBoxProperty {
         SpecialBoxProperty mouseEventHandler = new SpecialBoxProperty() {
                 public void put(String name, Box b, Object value) {
                     if (b.surface == null) return;
-                    for(Box c = b.prevSibling(); c != null; c = c.prevSibling())
-                        if (c.inside(c.surface.mousex, c.surface.mousey)) {
-                            c.put(name, c, value);
+                    for(Box c = b.prevSibling(); c != null; c = c.prevSibling()) {
+                        Box siblingChild = c.whoIs(c.surface.mousex, c.surface.mousey);
+                        if (siblingChild != null) {
+                            siblingChild.put(name, c, value);
                             return;
                         }
+                    }
                     if (b.getParent() != null)
                         b.getParent().put(name, b.getParent(), value);
                 }};