I've got a feeling the current implementation might not, based on comments in the JOGL code.
If all components are AWT components, then the layer represents the Canvas itself and the windowLayer is its direct parent.
If the Canvas is inside one (or more) Swing component(s), I wonder if the windowLayer is actually the first AWT ancestor component? This would influence the insets calculation.
Playing around with this might be worthwhile.
I've got a feeling the current implementation might not, based on comments in the JOGL code.
If all components are AWT components, then the layer represents the Canvas itself and the windowLayer is its direct parent.
If the Canvas is inside one (or more) Swing component(s), I wonder if the windowLayer is actually the first AWT ancestor component? This would influence the insets calculation.
Playing around with this might be worthwhile.
I've got a feeling the current implementation might not, based on comments in the JOGL code.
If all components are AWT components, then the layer represents the Canvas itself and the windowLayer is its direct parent.
If the Canvas is inside one (or more) Swing component(s), I wonder if the windowLayer is actually the first AWT ancestor component? This would influence the insets calculation.
Playing around with this might be worthwhile.
The current code works.