Re: Newt: Fullscreen and Undecorated not working on Windows
Posted by
void-pointer on
Mar 14, 2011; 5:33am
URL: https://forum.jogamp.org/Newt-Fullscreen-and-Undecorated-not-working-on-Windows-tp2671034p2675403.html
I am having this problem also, and observed the same results when I repeated the test on Windows 7, 64-bit, using jogl-2.0-b23-20110303. I looked through the
WindowImpl.java and
WindowsWindow.c classes but I do not know much about operating system windowing APIs, so I will list what happened so far.
The following causes the system to hang/freeze while I frantically try to kill the process. Also, there is also no icon for the window and it is no longer accessible.
<code>
...
GLWindow window = GLWindow.create(new GLCapabilities(GLProfile.getDefault()));
window.setAutoSwapBufferMode(false);
window.setSize(800, 600);
window.addGLEventListener(this);
window.setVisible(true);
window.setFullscreen(true);
...
</code>
If the full-screen and decoration routines are also resulting in problems, then one would expect that the issue arises from something that both FullScreenActionImpl and DecorationActionImpl (both in WindowImpl) have in common. Now, this is just an educated guess since I do not know much about system-dependent windowing, but perhaps this is caused by either setVisibleImpl or reconfigureWindowImpl. This eventually boils down to the Java_jogamp_newt_windows_WindowsWindow_setVisible0 and Java_jogamp_newt_windows_WindowsWindow_reconfigureWindow0 functions in WindowsWindow.c. Beyond that, if I am right up to this point at all, I am not too sure as to what could be causing the problem - perhaps Mr. Bien would have a better idea. Marc@56k mentioned that this worked correctly in previous builds, so perhaps that would help also.
If you would like me to perform any other tests or think that I should change something that I did, I would be happy to comply. Thank you for your time and I hope this issue gets fixed soon.