-   Programming (
-   -   About X windows on concealed desktops and under screen savers (

theNbomr 06-13-2007 11:30 AM

About X windows on concealed desktops and under screen savers
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 reports

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.
--- rod.

Tinkster 06-14-2007 04:21 AM

Not really a solution to your problem, but ... that application
that requires initial configuration: if it stores the setup
information somewhere (e.g. ~/.application), why not just copy
that file/directory from a machine that has a mouse and keyboard?


All times are GMT -5. The time now is 05:14 PM.