Animation stops

Problem: animation stops when switching to fullscreen mode. I use the glut gamemode. When i press a key, or move the mouse, or take a screenshot (!!!) (the only gl call there is glreadpixels) the animation starts again. I rebing my glut functions. what can i be doing wrong? A glutrepostdisplay call after te mode switch crashes the application …