Fixed fullscreen switching bug in Java 7