From dc4a31e7999d9b93cc16edfedea8975614fc2750 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 20 Oct 2006 10:44:28 +0000 Subject: [PATCH] Undo debug stuff that accidentially went with the last commit. --- src/java/org/lwjgl/opengl/LinuxAWTGLCanvasPeerInfo.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java/org/lwjgl/opengl/LinuxAWTGLCanvasPeerInfo.java b/src/java/org/lwjgl/opengl/LinuxAWTGLCanvasPeerInfo.java index 1b69a03a..50c16664 100644 --- a/src/java/org/lwjgl/opengl/LinuxAWTGLCanvasPeerInfo.java +++ b/src/java/org/lwjgl/opengl/LinuxAWTGLCanvasPeerInfo.java @@ -51,12 +51,12 @@ final class LinuxAWTGLCanvasPeerInfo extends LinuxPeerInfo { } protected void doLockAndInitHandle() throws LWJGLException { - int screen = 0;//-1; -/* try { + int screen = -1; + try { screen = LinuxCanvasImplementation.getScreenFromDevice(canvas.getGraphicsConfiguration().getDevice()); } catch (LWJGLException e) { LWJGLUtil.log("Got exception while trying to determine screen: " + e); - }*/ + } nInitHandle(screen, awt_surface.lockAndGetHandle(canvas), getHandle()); } private static native void nInitHandle(int screen, ByteBuffer surface_buffer, ByteBuffer peer_info_handle) throws LWJGLException;