- if (b.getParent() == null) {
- if (b.surface.boxContainingMouse != null && b.surface.boxContainingMouse.getParent() != null)
- b.surface.boxContainingMouse.put(name, b.surface.boxContainingMouse, value);
- } else {
- // check siblings
- for(Box c = b.prevSibling(); c != null; c = c.prevSibling())
- if (c.inside(c.surface.mousex, c.surface.mousey)) {
- c.put(name, c, value);
- return;
- }
- // move up a level
- if (b.getParent() != null && b.getParent().getParent() != null)
- b.getParent().put(name, b.getParent(), value);
- }
+ for(Box c = b.prevSibling(); c != null; c = c.prevSibling())
+ if (c.inside(c.surface.mousex, c.surface.mousey)) {
+ c.put(name, c, value);
+ return;
+ }
+ if (b.getParent() != null)
+ b.getParent().put(name, b.getParent(), value);