LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-13-2007, 12:30 PM   #1
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Lightbulb 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
Code:
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.

Last edited by theNbomr; 06-13-2007 at 12:51 PM.
 
Old 06-14-2007, 05:21 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,000
Blog Entries: 11

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
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?


Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
more screen savers zchoyt Linux - Software 4 10-24-2004 02:29 PM
CL Screen savers??? trey85stang Slackware 7 12-27-2003 10:04 AM
Screen Savers CuteBug Linux - Newbie 1 11-13-2003 11:25 AM
Screen savers raees Linux - General 1 11-10-2003 10:19 AM
screen savers abc249 Linux - Software 4 04-28-2003 05:08 PM


All times are GMT -5. The time now is 10:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration