From a5c8a3d6afc28d757350e56e4529f129b141a5b7 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Fri, 23 Feb 2007 08:31:59 +0000 Subject: [PATCH] Linux: Don't call XSetInputFocus when creating a window. XSetInputFocus can fail if the window is not mapped when calling it, and it seems that it's rude to call XSetInputFocus according to the ICCCM when the application doesn't already have the focus in one of its subwindows. --- src/native/linux/org_lwjgl_opengl_Display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/native/linux/org_lwjgl_opengl_Display.c b/src/native/linux/org_lwjgl_opengl_Display.c index fc5a8aec..7555a9c7 100644 --- a/src/native/linux/org_lwjgl_opengl_Display.c +++ b/src/native/linux/org_lwjgl_opengl_Display.c @@ -295,7 +295,6 @@ static Window createWindow(JNIEnv* env, Display *disp, int screen, jint window_m } XMapRaised(disp, win); waitMapped(disp, win); - XSetInputFocus(disp, win, RevertToNone, CurrentTime); if (!checkXError(env, disp)) { destroyWindow(env, disp, win); return 0;