<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1182</bug_id>
          
          <creation_ts>2015-07-27 01:59:38 +0200</creation_ts>
          <short_desc>AWT Toolkit disableBackgroundErase() ineffective since Java 7, flickering visible at resize of GLCanvas</short_desc>
          <delta_ts>2015-09-27 01:11:17 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>awt</component>
          <version>2.3.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>TRUE</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>4821</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-07-27 01:59:38 +0200</bug_when>
    <thetext>Platform: GNU/Linux X11
Java &gt;= 7

- Visible while resizing GLCanvas on GNU/Linux X11 w/ Java &gt;= 7

- Method &apos;disableBackgroundErase()&apos; has been successfully queried
  from Toolkit implementation and called from within GLCanvas.
  However, flickering is visible - On Java 6 no flickering is observed.

- Determine whether other platforms are affected as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4831</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-07-28 01:28:53 +0200</bug_when>
    <thetext>Manual resize worked well in Java 6.

+++

Seems like that the Container holding the GLCanvas (etc)
are not fully covered by the GLCanvas at manual resize
due to deferred resizing on the platform?

In such case, the inner GLCanvas does not
completely cover its container [clipping] space
and &apos;Container.update(Graphics)&apos; performs
a Graphics.clearRect(..).

A tedious workaround would be to override all 
&apos;Container.update(Graphics)&apos; methods
to skip the clearRect call (similar to GLCanvas).

Further there is the &apos;infamous&apos; system property:
  sun.awt.noerasebackground=true

Also see: &lt;https://stackoverflow.com/questions/5452439/awt-canvas-flickering-on-manual-resize&gt;

Nothing we can do here, I am afraid.

INVALID: b/c this doesn&apos;t seem to be our bug.

If anybody has a proper workaround/solution,
please reopen this bug so we can adopt the patch.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>