Created attachment 857 [details]
Each time NewtCanvasAWT is resized, the viewport moves down and to the right and the rendering eventually disappears.
It can be reproduced with the attached JOGLQuadNewt example with JOGL 2.4.0 on Ubuntu. No issue with JOGL 2.3.2.
Tested on Ubuntu 20.04 with OpenJDK 11.0.12+7 and OpenJDK 17.0.6+10.
Created attachment 858 [details]
Thank you, I will look at at soon.
Reproduced with given test as well as with out unit test
(In reply to Sven Gothel from comment #3)
Culprit is commit ad38d1559854985b1131e5b6c7274a392b5bc265
Bug 1431: Fix NewtCanvasAWT resize on X11, broken since commit ad38d1559854985b1131e5b6c7274a392b5bc265
Commit ad38d1559854985b1131e5b6c7274a392b5bc265 introduced XTranslateCoordinates(..) to safely validate
the client-space window position against the parent (root).
Totally missing in this change was the NEWT child window case
since it always used the root-window as the destination.
This change tracks the parent-window (valid parent Window or NULL)
within the JavaWindow struct and either uses the parent-window
if available or the root-window for XTranslateCoordinates(..).
This results in the proper client-space position.
on Debian 12 w/ Java17.