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);
}};