|
From: Elias N. <eli...@us...> - 2003-10-21 16:30:53
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl In directory sc8-pr-cvs1:/tmp/cvs-serv14892/src/java/org/lwjgl/opengl Modified Files: Window.java Removed Files: MacOSX.java Log Message: Index: Window.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/Window.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- Window.java 20 Oct 2003 14:17:47 -0000 1.15 +++ Window.java 21 Oct 2003 15:11:58 -0000 1.16 @@ -30,32 +30,6 @@ static { System.loadLibrary(Sys.getLibraryName()); - /* - * elias: Mac OS X hacks. We need to fetch the toolkit to acquire a Dock icon, a system menu - * and to make windows behave normally. We also need to intercept the quit event from - * Swing. Luckily, Swing can be assumed to be present on Mac OS X. Because some of this - * is apple extensions to java, we need stub files to successfully compile on other platforms. - * - * Additionally, because of the way swing works, applications now need to do an - * explicit System.exit() to quit. Returning from the main thread is not enough any - * more. - * - * I've wasted a significant amount of time searching for an acceptable solution, without - * finding a way to avoid Swing. AFAIK, - * - * 1. There's no way to acquire the Dock icon, system menu and normal window behaviour. - * For that, you either need a proper bundled, native application or initialize Swing. - * 2. Even if there were a way around it, Swing is automatically started anyway if you - * use Java Web Start. - * 3. Swing gains total control over the main event loop, so the native library need to - * work around by maintaining an internal event queue. That's really boring stuff, indeed. - * - * I have posted a bug report to apple regarding the behaviour. - * - */ - if (Display.getPlatform() == Display.PLATFORM_AGL) { - MacOSX.initMacOSX(); - } } /** Whether the window is currently created, ie. has a native peer */ --- MacOSX.java DELETED --- CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/opengl/MacOSX.java |