hiding the pointer

Is there any nice and simple way to hide the pointer (the mouse pointing arrow that is) when using opengl and glx.
I would like to hide it when I go into fullscreen mode and show it again when I return to windowed mode…

Just make the pointer icon nothing when you are in fullscreen mode and then return to the arrow icon when you want it