Originally Posted by seaweed
I tried that - it did not work. I even set Overlay and OverlayDefaultVisual options to false in xorg.conf - still no luck.
actually combining the two by setting "export VDPAU_NVIDIA_NO_OVERLAY=1" right before the script i am calling to dump the screen worked but with some caveat - it shows green window for some of the windows (tied to a presentation queue) that were destroyed earlier. But I guess its an universal problem with VDPAU - the background does not get set correctly.
Updating this for whoever interested, This is resolved, the green stuff shows up only when another window is created on top of VDPAU window and has an OpenGL context to it.