diff options
Diffstat (limited to 'libjava/java/awt/Component.java')
-rw-r--r-- | libjava/java/awt/Component.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/java/awt/Component.java b/libjava/java/awt/Component.java index 8c75ba0..bfd4e08 100644 --- a/libjava/java/awt/Component.java +++ b/libjava/java/awt/Component.java @@ -3816,6 +3816,12 @@ public abstract class Component if (popups == null) popups = new Vector(); popups.add(popup); + + if (popup.parent != null) + popup.parent.remove(popup); + popup.parent = this; + if (peer != null) + popup.addNotify(); } /** |