summaryrefslogtreecommitdiffstats
path: root/src/gleem/ManipManager.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-09-09 07:54:25 +0000
committerKenneth Russel <[email protected]>2005-09-09 07:54:25 +0000
commitba4ea2f846e55283efbc19d4dc7a62a1f116e4b1 (patch)
tree416c956f6160ba487df24e6f1495b26e6473ae0e /src/gleem/ManipManager.java
parent61979d242e6a942b3cbbdd8d5f3b326260517eed (diff)
Restructured GLJPanel to handle reshapes explicitly without needing to
put them on the AWT Event Queue thread via EventQueue.invokeLater(). Cleaned up single-threaded workaround code in GLCanvas. Fixed bug in ManipManager.unregisterWindow(). git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@124 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/gleem/ManipManager.java')
-rw-r--r--src/gleem/ManipManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gleem/ManipManager.java b/src/gleem/ManipManager.java
index 85a3d80..b959e74 100644
--- a/src/gleem/ManipManager.java
+++ b/src/gleem/ManipManager.java
@@ -122,8 +122,9 @@ public class ManipManager {
}
WindowInfo info = (WindowInfo) windowToInfoMap.get(window);
if (info != null) {
- for (Iterator iter = info.manips.iterator(); iter.hasNext(); ) {
- removeManipFromWindow((Manip) iter.next(), window);
+ Object[] manips = info.manips.toArray();
+ for (int i = 0; i < manips.length; i++) {
+ removeManipFromWindow((Manip) manips[i], window);
}
windowToInfoMap.remove(window);
removeMouseListeners(window);