does anyone know how to toggle fullscreen on/off with glutFullScreen();?

:confused: does anyone know how to toggle fullscreen on/off with glutFullScreen()?
i can only switch it to fullscreen. how do i switch it back?
Thanks.

With glutReshapeWindow() and glutPositionWindow() of course.

Why does nobody read manuals anymore?

The problem with calling glutReshapeWindow after a call to glutFullScreen is that the window decorations are lost. I too have this problem – I can resize the window after going to fullscreen mode, but I can’t get the decorations back. Does anyone know how to do this?