From 985d0973a8779b46c95916a881d1afbe02e642dc Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 27 May 2007 13:17:35 +0000 Subject: [PATCH] Linux: Move input grab update from createWindow to when MapNotify is received. This avoid any input grabbing being ignored because the window is not yet mapped --- src/java/org/lwjgl/opengl/LinuxDisplay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/opengl/LinuxDisplay.java b/src/java/org/lwjgl/opengl/LinuxDisplay.java index ae368695..c9fdb546 100644 --- a/src/java/org/lwjgl/opengl/LinuxDisplay.java +++ b/src/java/org/lwjgl/opengl/LinuxDisplay.java @@ -373,7 +373,6 @@ final class LinuxDisplay implements DisplayImplementation { grab = false; minimized = false; dirty = true; - updateInputGrab(); } finally { peer_info.unlock(); } @@ -615,6 +614,7 @@ final class LinuxDisplay implements DisplayImplementation { case LinuxEvent.MapNotify: dirty = true; minimized = false; + updateInputGrab(); break; case LinuxEvent.UnmapNotify: dirty = true;