git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@677
7f0cb862-5218-0410-a997-
914c9d46530a
- if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) ) {
+ if ( cursorIDToUse == GLUT_CURSOR_INHERIT )
+ XUndefineCursor( fgDisplay.Display, window->Window.Handle );
+ if ( ( cursorIDToUse != GLUT_CURSOR_NONE ) && ( cursor == None ) )
fgError( "Failed to create cursor" );
fgError( "Failed to create cursor" );
- }
- XDefineCursor( fgDisplay.Display,
- window->Window.Handle, cursor );
+ else
+ XDefineCursor( fgDisplay.Display,
+ window->Window.Handle, cursor );
}
#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE
}
#elif TARGET_HOST_WIN32 || TARGET_HOST_WINCE