From: <eli...@us...> - 2006-12-11 20:38:25
|
Revision: 2690 http://svn.sourceforge.net/java-game-lib/?rev=2690&view=rev Author: elias_naur Date: 2006-12-11 12:38:21 -0800 (Mon, 11 Dec 2006) Log Message: ----------- Linux: Make sure a newly created window get the focus, if possible, to avoid a fullscreen window immediately getting minimized 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 2006-12-11 11:26:26 UTC (rev 2689) +++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2006-12-11 20:38:21 UTC (rev 2690) @@ -298,6 +298,7 @@ XMapRaised(disp, win); waitMapped(disp, win); XClearWindow(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. |