diff --git a/freeglut/freeglut/src/freeglut_gamemode.c b/freeglut/freeglut/src/freeglut_gamemode.c index 490d2f6..29a2947 100644 --- a/freeglut/freeglut/src/freeglut_gamemode.c +++ b/freeglut/freeglut/src/freeglut_gamemode.c @@ -497,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,