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. |
From: <eli...@us...> - 2007-02-23 08:21:04
|
Revision: 2742 http://svn.sourceforge.net/java-game-lib/?rev=2742&view=rev Author: elias_naur Date: 2007-02-23 00:21:02 -0800 (Fri, 23 Feb 2007) Log Message: ----------- Linux: Don't use XClearWindow to clear the window, but rely on the OpenGL clearing instead. Also, remove redundant attributes in XCreateWindow 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-21 13:44:33 UTC (rev 2741) +++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2007-02-23 08:21:02 UTC (rev 2742) @@ -258,9 +258,7 @@ cmap = XCreateColormap(disp, root_win, vis_info->visual, AllocNone); attribs.colormap = cmap; attribs.event_mask = ExposureMask | /*FocusChangeMask | */VisibilityChangeMask | StructureNotifyMask | KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | PointerMotionMask; - attribs.background_pixel = 0xFF000000; - attribs.win_gravity = NorthWestGravity; - attribmask = CWColormap | CWBackPixel | CWEventMask | CWWinGravity; + attribmask = CWColormap | CWEventMask; if (isLegacyFullscreen(window_mode)) { attribmask |= CWOverrideRedirect; attribs.override_redirect = True; @@ -297,7 +295,6 @@ } XMapRaised(disp, win); waitMapped(disp, win); - XClearWindow(disp, win); XSetInputFocus(disp, win, RevertToNone, CurrentTime); if (!checkXError(env, disp)) { destroyWindow(env, disp, win); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
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. |
From: <eli...@us...> - 2008-04-12 21:50:02
|
Revision: 3011 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3011&view=rev Author: elias_naur Date: 2008-04-12 14:49:57 -0700 (Sat, 12 Apr 2008) Log Message: ----------- Linux: Removed library destructor, because lwjgl doesn't fiddle with the global repeat control anymore 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 2008-04-12 21:45:04 UTC (rev 3010) +++ trunk/LWJGL/src/native/linux/org_lwjgl_opengl_Display.c 2008-04-12 21:49:57 UTC (rev 3011) @@ -135,17 +135,6 @@ return atom; } -static void __attribute__ ((destructor)) my_fini(void) { - Display *disp = XOpenDisplay(NULL); - if (disp == NULL) { - return; - } - XKeyboardControl repeat_mode; - repeat_mode.auto_repeat_mode = AutoRepeatModeDefault; - XChangeKeyboardControl(disp, KBAutoRepeatMode, &repeat_mode); - XCloseDisplay(disp); -} - static void setDecorations(Display *disp, Window window, int dec) { Atom motif_hints_atom = XInternAtom(disp, "_MOTIF_WM_HINTS", False); MotifWmHints motif_hints; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |