Re: GLWindow.setFullscreen(true) triggering multiple reshape events
Posted by
Sven Gothel on
Sep 28, 2012; 4:16pm
URL: https://forum.jogamp.org/GLWindow-setFullscreen-true-triggering-multiple-reshape-events-tp4026307p4026308.html
On 09/28/2012 06:03 PM, Mike [via jogamp] wrote:
> Hi guys.
>
> I'm using the NEWT GLWindow with jogl2.0-rc10, in windows 7 64bit. When i call
> setFullscreen() on my window i get 4 or 5 GLEventListener.repaint() events, is
> this normal? If this is normal is there some way to manually discard events?
Well, 1 repaint event may be triggered by NEWT itself.
However, others can be generated by the system - so I would say, yes.
Ofc .. if you can proof we generate too many of these events ourselves,
I am more than happy to fix it.
In any case, if you have the GLAutoDrawable (e.g. GLWindow) attached
to an GLAnimatorControl (e.g. Animator), then the repaint events will be
ignored to favor fluent animation 'in time'.
~Sven
>
> Thanks,
> Mike