<?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>849</bug_id>
          
          <creation_ts>2013-10-06 17:47:27 +0200</creation_ts>
          <short_desc>AWT GLAutoDrawables (JAWTWindow) shall honor it&apos;s parent visibility state</short_desc>
          <delta_ts>2014-01-12 04:29:16 +0100</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</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>878</dependson>
    
    <dependson>928</dependson>
    
    <dependson>937</dependson>
          <blocked>729</blocked>
    
    <blocked>889</blocked>
    
    <blocked>906</blocked>
          <everconfirmed>0</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>---</cf_type>
          <cf_scm_refs>e33e6374e0be0454f7e9732b5f897f84dbc3c4dc</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3051</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-06 17:47:27 +0200</bug_when>
    <thetext>The regular AWT code (X11, gdi, ..) does not set e.g. GLCanvas invisible,
if it&apos;s parent was set invisible. 

No propagation of the visibility state is being performed other than the hierarchy listener!

I have checked w/ OpenJDK source code .. indeed only a hierarchy event is being propagated.
Hence GLCanvas still assumes it is visible and GL operations are still performed.

So we need JAWTWindow to cache visibility states,
i.e. visibility-self and visibility-by-parent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3052</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-10-06 21:28:13 +0200</bug_when>
    <thetext>    Bug 729, Bug 849: Honor JAWTWindow&apos;s [parent] visibility state
    
    JAWTWindow snoops HierarchyEvents for SHOWING_CHANGED to
    track local component&apos;s visibility state as well as it&apos;s global visibility state.
    The later is determined by it&apos;s parent&apos;s visibility change.
    
    If &apos;removeNotify()&apos; is called, component&apos;s visibility is reset to it&apos;s local visibility state.
    
    Fixes OSX CALayer component&apos;s visibility if parent&apos;s visibility changes (Bug 729).
    
    Fixes continuous GL rendering if parent is invisible (Bug 849).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>