GlCanvas resize flicker on Linux

What’s the current status regarding disabling backround erase in GLCanvas?

When I run my JOGL program in a Linux X11 environment with JDK 1.6.0, I get terrible flicker during window resize. The problem does not occur under windows. I know it’s something at the Java level causing the flicker (and not X or the video driver), because I can change the flicker color with GLCanvas.setBackground(). I tried -Dsun.awt.noerasebackground=true to no avail.

I’ve looked at the source for GLCanvas, where it appears to use reflection to find a disableBackgroundErase() method in the Toolkit. When I run my JOGL program on Linux, GLCanvas.getToolkit() returns an instance of sun.awt.X11.XToolkit, which has no such method as far as I can tell.

The bug parade 6333613 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6333613 indicates state: Closed, fixed.

Sorry about that. I don’t think I tested with a window manager on Linux or Solaris supporting live resizes. (Actually, I thought I did at one point, but that may have been a while ago.) I’ve filed Issue 298 about this and will try to get it started with the AWT team this week.

Sorry for the delay, but this is filed as Sun bug 6558510 and will be fixed in Java SE 6 update 3 (and in 7) thanks to Artem Ananiev from the AWT team.