Login  Register

Re: NEWT blinking on macOS when resizing

Posted by xor on Jan 01, 2020; 6:46am
URL: https://forum.jogamp.org/NEWT-blinking-on-macOS-when-resizing-tp4040200p4040217.html

I found a way to prevent that blink.

When resizing window, pause the Animator. However there isn't an event called windowResizeFinished, so there isn't a good time to restore that.

So this bug is related to the implementation of Animator which gets higher priority than resize so the window isn't able to respond in time.

Update: actually once animator is resumed, the window will only get repainted when animator triggers display.

When animator is resumed and window is resized, the window will remain default color until animator triggers display.