X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_gamemode.c;h=29a2947f9f9cde920eb62307e4498b90844be953;hb=8e06738e2a2879e125fa166f6f7817727d898beb;hp=0813d4136a8859e8a2f8bd9c84ad6dbbccb741eb;hpb=1a7b5b7702bcc093a613b02be7af4720f2618c79;p=freeglut diff --git a/src/freeglut_gamemode.c b/src/freeglut_gamemode.c index 0813d41..29a2947 100644 --- a/src/freeglut_gamemode.c +++ b/src/freeglut_gamemode.c @@ -131,6 +131,7 @@ void fghRememberState( void ) */ void fghRestoreState( void ) { +#if TARGET_HOST_UNIX_X11 /* * Restore the remembered pointer position: */ @@ -139,8 +140,6 @@ void fghRestoreState( void ) fgDisplay.DisplayPointerX, fgDisplay.DisplayPointerY ); -#if TARGET_HOST_UNIX_X11 - /* * This highly depends on the XFree86 extensions, not approved as X Consortium standards */ @@ -498,7 +497,7 @@ int FGAPIENTRY glutEnterGameMode( void ) * (XSetInputFocus) is called with a not yet viewable window, it will exit * the application which we have to aviod, so wait until it's viewable: */ - while (GrabSuccess =! XGrabPointer( + while (GrabSuccess != XGrabPointer( fgDisplay.Display, fgStructure.GameMode->Window.Handle, TRUE, ButtonPressMask|ButtonReleaseMask|ButtonMotionMask |PointerMotionMask,