Created
June 27, 2012 19:57
-
-
Save pplante/3006445 to your computer and use it in GitHub Desktop.
fixes a stupid bug with lwjgl on osx when the user presses cmd+q in fullscreen the app hangs causing you to restart OSX.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// see: http://www.java-gaming.org/index.php?topic=23640.0 | |
Application.getApplication().setQuitHandler(new QuitHandler() { | |
@Override | |
public void handleQuitRequestWith(AppEvent.QuitEvent quitEvent, QuitResponse quitResponse) { | |
Gdx.app.exit(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment