osx - Quitting Java program renders Mac OS X window switching non-functional -


on mac programming, have app installed called bettertouchtool allows me bind keyboard shortcuts 'gestures' on trackpad. have bound gesture (that doesn't have apple default) shortcut command+q, quits active program. have found convenient quitting programs testing, can writing code.

however graphical game programming, action makes can't use 3 finger swipe switch between windows (several other gestures disabled). happen if go menu , click quit or if click red x close button. fix either restart computer or (and weird) click in-game close button calls system.exit(0);. know players using still want figure out why happening. in addition games minecraft on computer don't this.

i using jframe setdefaultcloseoperation(jframe.exit_on_close); in code. in attempt fix issue have tried registering com.apple.eawt.quithandler calls system.exit(0); in handler.

i have no idea considered relevant code here, whatever see, let me know.

i figured out. there 1 rouge thread.sleep() call in jframe somehow effecting system.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -