X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fxwt%2FSpecialBoxProperty.java;h=095cc6f5aed8f5ff0f12954b44fc5ec71884069c;hb=65e5235c58672a2c711c4acb0a6af44429287234;hp=748819935139a50e235c74f78d20a6bc4ba2237e;hpb=f55f0193140d17313595193b78d6b4e466170764;p=org.ibex.core.git diff --git a/src/org/xwt/SpecialBoxProperty.java b/src/org/xwt/SpecialBoxProperty.java index 7488199..095cc6f 100644 --- a/src/org/xwt/SpecialBoxProperty.java +++ b/src/org/xwt/SpecialBoxProperty.java @@ -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); }};