From 87d0622a0d1c5b8045874846d361d4d8ce0d7c2c Mon Sep 17 00:00:00 2001 From: Christopher John Purnell Date: Sun, 5 Aug 2001 19:30:26 +0000 Subject: [PATCH] More position tweeks. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@20 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut-1.3/freeglut_window.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/freeglut-1.3/freeglut_window.c b/freeglut-1.3/freeglut_window.c index 13f4610..01b494d 100644 --- a/freeglut-1.3/freeglut_window.c +++ b/freeglut-1.3/freeglut_window.c @@ -436,16 +436,16 @@ void fgOpenWindow( SFG_Window* window, const char* title, int x, int y, int w, i XMapWindow( fgDisplay.Display, window->Window.Handle ); /* - * This somehow fixes the glutGet() GLUT_WINDOW_X and GLUT_WINDOW_Y problem... - */ - //XMoveWindow( fgDisplay.Display, window->Window.Handle, x, y ); - - /* * In game mode, move the viewport a bit to hide the decorations. * This code depends on the XFree86 video mode extensions. */ if( gameMode == TRUE ) { + /* + * This somehow fixes the glutGet() GLUT_WINDOW_X and GLUT_WINDOW_Y problem... + */ + XMoveWindow( fgDisplay.Display, window->Window.Handle, x, y ); + # ifdef X_XF86VidModeSetViewPort /* -- 1.7.10.4