🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #23722

Re: subwindows wanting to know top ancestor info.

#23722
From: Ken Lee
Date: Fri, 14 Jun 1991 18:38
14 lines
1034 bytes
In article <307@trwacs.UUCP>, pascale@trwacs.UUCP (Rita Pascale) writes:
|> Having a child/subwindow and knowing the top-most
|> ancestor window id (under the root window but not 
|> including the root), how can I find the top-most
|> window's width and height?

If you know the window ID, XGetGeometry will give you the width and height.
If you don't know the window ID, XQueryTree will give you a list of ancestors.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee
Technical Details
Message-ID: <1991Jun14.113855@wsl.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee
References: <307@trwacs.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee
From: klee@wsl.dec.com (Ken Lee)
Newsgroups: comp.windows.x
Subject: Re: subwindows wanting to know top ancestor info.
Message-ID: <1991Jun14.113855@wsl.dec.com>
Date: 14 Jun 91 18:38:55 GMT
References: <307@trwacs.UUCP>
Sender: news@pa.dec.com (News)
Reply-To: klee@wsl.dec.com
Organization: DEC Western Software Laboratory
Lines: 14