I'd like to dump the contents of an X window. Like this:
xwd -id | convert - capture.png
... which works quite well as long as the target window is not hidden (totally or partially behind other windows) or minimized.
Any idea on how to do this?
I guess we somehow have to send a "repaint" signal to the hidden window and then capture its response or something... :)