Skip to content

Instantly share code, notes, and snippets.

@pplante
Created June 27, 2012 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pplante/3006445 to your computer and use it in GitHub Desktop.
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.
// 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