Re: Application for finding all Windows

On Wed, 2007-21-02 at 17:11 +0530, Udayan Singh wrote:

I want to develop an application where I can get a list of all the windows 
that are open in the GNOME Screen and find any activity being performed on 
any other window on the GUI screen (and not only my application) e.g. 
mouse click on window of another application sends me a signal.

You can see the xlsclients program (part of the core X distribution)
for getting a list of windows.

To find activity, one way is to set up a listener on a particular
port, 6161 say, and then use :6161 as your DISPLAY variable; your
listener would forward connections to the real X server.

Another way would be event interposition and synthetic events but
it is deliberate (for security reasons) that this technique
does not always work.  For example, if someone types in a
password and you captured the keystrokes...

If you are trying to write a screen saver, see the code for the
existing ones.

Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information.

Please don't post to public archived mailing lists
with this sort of stuff, even though courts have rejected
it and it is essentially meaningless gibberish.  Get
yourself a mail account outside your company if they
are that clueless.


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]