Reset a hidden (or minimized) X11 window
I want to reset the contents of the X window. Like this:
xwd -id | convert - capture.png
... which works well enough as long as the target window is not hidden (completely or partially behind other windows) or minimized.
Any idea on how to do this?
I guess we'll somehow have to send a "recolor" signal to a hidden window and then capture its response or something ... :)
+1
user38529
source
to share
1 answer
Do you have an objection to bring it to the fore?
If not, you can use a tool like wmctrl to bring the window to the front (and maximize it, etc.), use xwd to grab it, then send it back to where it came from with wmctrl.
+1
Stobor
source
to share