Once again, I apologize for posting a question only peripherally related to programming here.
My objective is to use xwd
to capture images of windows created by perpetually running processes. This is intended to occur as a cron job, generating a series of time/date stamped images. My problem is that while the windows are 'visible' in the sense of being reported by 'xwininfo'
, they do not work with xwd
unless they are actually visible on the screen. If the screen saver (tested only with KDE desktop) is active, or if the window is concealed on a different virtual desktop, then xwd
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 73 (X_GetImage)
Serial number of failed request: 11101
Current serial number in output stream: 11101
evidently meaning something like "I can't see that window".
So, is there any way to work around this? Some attribute or command that a window can be given to 'expose itself'? I would consider using an Xvfb
in which to run the long-running X application, however the application requires some interactive configuration at startup, which is impossible without having a real pointing device and visible screen.
Any other forums where these kinds of questions are common? Looking for bright ideas here.
Any advice gratefully approeciated. Thanks.