Article View: comp.windows.x
Article #38309Getting a list of all visible windows on the screen
From: GreenRose Corporation
Date: Wed, 30 Apr 1997 00:00
Date: Wed, 30 Apr 1997 00:00
28 lines
1777 bytes
1777 bytes
Hi everyone, I am writing a program at university where I'm trying to get a list of all visible windows on an X server. I use XQueryTree with the root window as the window for which I want to retrieve the children. Resulting is a list of many windows. When I looked deeply into this list, I saw that there are far more many windows in the list than the number of those I see on the screen. I realized that XQueryTree returns the ONE LEVEL children of the root window and that rarely a window which is visible, is a one level child of the root window. That is the windows which I need to get their ID's are rarely in the list from XQueryTree. What I would like to ask is: 1) what are all those windows that do appear in the list but not on the screen? 2) How do I get more than ONE LVEL children with XQueryTree (I guess I have to recurse ...)? 3) How do I know if a window is visible on the screen. What is common to all visible windows? How can I diffrenciate between them and others? Thank you all in advance, Cheers, Shuky Rosinger,
Technical Details
Message-ID:
<3367008D.626@numbat.cs.rmit.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6cac,9d141f5a2f40809e,start X-Google-Attributes: gidf6cac,public X-Google-Thread: 1667f1,9d141f5a2f40809e,start X-Google-Attributes: gid1667f1,public X-Google-Thread: 103734,9d141f5a2f40809e,start X-Google-Attributes: gid103734,public X-Google-Thread: f4bda,9d141f5a2f40809e,start X-Google-Attributes: gidf4bda,public From: GreenRose Corporation <info@greenrose.com> Subject: Getting a list of all visible windows on the screen Date: 1997/04/30 Message-ID: <3367008D.626@numbat.cs.rmit.edu.au> X-Deja-AN: 238365946 Organization: GreenRose Corporation Newsgroups: comp.windows.x,fj.windows.x,comp.windows.x.i386unix,comp.os.linux.x