I've written an OpenGL application in Linux through GLX. It uses double buffering with glXSwapBuffers and Sync to VBlank set via NVIDIA X Server Settings. I'm using Compiz and have smooth moving of windows and no tearing (Sync to VBlank enabled in Compiz settings). But when I
Try to move or resize the OpenGL window or
Move other windows through the area occupied by the OpenGL window
the system stutters and freezes for 3-4 seconds. Moving other windows outside the area occupied by the OpenGL window is smooth as always. Moreover the problem only arises if the OpenGL application is in the loop of producing frames of animation therefore swapping the buffers. If the content is static and the application is not swapping the buffers there are no problems,moving the various windows is smooth. Could be a synchronization issue between my application and Compiz?