Only consider window for event dispatching if visible.
authorRoman Kennke <roman.kennke@aicas.com>
Fri Dec 19 09:49:50 2008 +0100 (15 months ago)
changeset 115851cd4781912
parent 114ffc17727b68f
child 11627b232a90902
Only consider window for event dispatching if visible.
src/sun/awt/peer/cacio/AbstractManagedWindowContainer.java
--- a/src/sun/awt/peer/cacio/AbstractManagedWindowContainer.java Tue Dec 16 12:31:10 2008 +0100
+++ b/src/sun/awt/peer/cacio/AbstractManagedWindowContainer.java Fri Dec 19 09:49:50 2008 +0100
@@ -129,10 +129,12 @@ public abstract class AbstractManagedWin
Iterator<ManagedWindow> i = children.descendingIterator();
while (i.hasNext()) {
ManagedWindow child = i.next();
- Rectangle b = child.getBounds();
- if (x >= b.x && y >= b.y
- && x < (b.x + b.width) && y < (b.y + b.height)) {
- return child;
+ if (child.isVisible()) {
+ Rectangle b = child.getBounds();
+ if (x >= b.x && y >= b.y
+ && x < (b.x + b.width) && y < (b.y + b.height)) {
+ return child;
+ }
}
}
// If we reach here, we found no child at those coordinates.