Re: Mac Canvas3D location bug
Posted by
Sven Gothel on
Oct 06, 2013; 3:47pm
URL: https://forum.jogamp.org/Mac-Canvas3D-location-bug-tp4030052p4030167.html
On 10/06/2013 05:04 PM, Sven Gothel wrote:
>> I noticed an other visibility issue that needs to be resolved for
>> my use case. The canvas 3D should disappear when one of its parent is/becomes
>> invisible too, something that may happen when you have to combine different
>> panels/layouts in a window. Here's a simple test showing this issue:
>
> Thank you - I will add it, as usual. Looks like we need to snoop on the
> hierarchy listener ..
This issue actually is at least confusing.
Even w/ 'normal' AWT (X11, ..) the GLCanvas is not set invisible
if it's parent is set invisible manually. Hence no propagation
of the visibility is being performed other than the hierarchy listener!
I have checked w/ OpenJDK source code .. indeed only a hierachy 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.
https://jogamp.org/bugzilla/show_bug.cgi?id=849>