From: <eli...@us...> - 2007-02-23 08:32:00
|
Revision: 2743 http://svn.sourceforge.net/java-game-lib/?rev=2743&view=rev Author: elias_naur Date: 2007-02-23 00:31:59 -0800 (Fri, 23 Feb 2007) Log Message: ----------- 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. Modified Paths: -------------- trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c Modified: trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c =================================================================== --- trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2007-02-23 08:21:02 UTC (rev 2742) +++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2007-02-23 08:31:59 UTC (rev 2743) @@ -295,7 +295,6 @@ } XMapRaised(disp, win); waitMapped(disp, win); - XSetInputFocus(disp, win, RevertToNone, CurrentTime); if (!checkXError(env, disp)) { destroyWindow(env, disp, win); return 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |