From ba4ea2f846e55283efbc19d4dc7a62a1f116e4b1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 9 Sep 2005 07:54:25 +0000 Subject: 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 --- src/gleem/ManipManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gleem/ManipManager.java') 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); -- cgit v1.2.3