Hiding Mouse Cursor

Hi all
I am trying to use glx/Opengl. I need to hide the mouse when its over the opengl window. For my test program I used glutSetCursor(GLUT_CURSOR_NONE);
while I am not using glut for my new design. Kindly let me know how to hide the cursor using X/glX/OpenGL.

Thanks
Navin

I found one solution. I am using
XDefineCursor(Display, Window, blankCursor), and define the blankCursor.

Is there something better than this ?