From 821778c655cae9b11bd8fa888c7eac88356f7b04 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 6 Apr 2006 21:00:43 +0000 Subject: [PATCH] Made AWTGLCanvas listen to its own component events --- src/java/org/lwjgl/opengl/AWTGLCanvas.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/java/org/lwjgl/opengl/AWTGLCanvas.java b/src/java/org/lwjgl/opengl/AWTGLCanvas.java index a2ca763b..cc80e3e3 100644 --- a/src/java/org/lwjgl/opengl/AWTGLCanvas.java +++ b/src/java/org/lwjgl/opengl/AWTGLCanvas.java @@ -150,6 +150,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener, if (pixel_format == null) throw new NullPointerException("Pixel format must be non-null"); addHierarchyListener(this); + addComponentListener(this); this.drawable = drawable; this.pixel_format = pixel_format; }