diff options
author | Kenneth Russel <[email protected]> | 2005-09-09 07:54:25 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-09-09 07:54:25 +0000 |
commit | ba4ea2f846e55283efbc19d4dc7a62a1f116e4b1 (patch) | |
tree | 416c956f6160ba487df24e6f1495b26e6473ae0e /src/gleem/ManipManager.java | |
parent | 61979d242e6a942b3cbbdd8d5f3b326260517eed (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.java | 5 |
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); |