Login  Register

GLWindow loses focus after maximizing (OSX)

Posted by ac on Sep 12, 2015; 2:29am
URL: https://forum.jogamp.org/GLWindow-loses-focus-after-maximizing-OSX-tp4035264.html

This is a downstream bug in Processing (https://github.com/processing/processing/issues/3339) but I'm able to reproduce in JOGL.

The problem is that NEWT's mouse listener does not generate new events after maximizing the GLWindow, unless one clicks on the title bar of the window, or switches back and forth with other open applications.

I tested it on Mac OS X 10.9.5, with the test build of JOGL from September 1. Windows and Linux don't exhibit this problem.

Here you have my test code:

https://github.com/codeanticode/jogl2-tests/blob/master/src/test/windows/WindowFocusNEWT.java

Andres