diff options
Diffstat (limited to 'libjava/classpath/java/awt/LightweightDispatcher.java')
-rw-r--r-- | libjava/classpath/java/awt/LightweightDispatcher.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/classpath/java/awt/LightweightDispatcher.java b/libjava/classpath/java/awt/LightweightDispatcher.java index 04196bd..39bdb88 100644 --- a/libjava/classpath/java/awt/LightweightDispatcher.java +++ b/libjava/classpath/java/awt/LightweightDispatcher.java @@ -286,7 +286,8 @@ final class LightweightDispatcher private void redispatch(MouseEvent ev, Component target, int id) { Component source = ev.getComponent(); - if (target != null) + assert target != null; + if (target.isShowing()) { // Translate coordinates. int x = ev.getX(); |