Path: 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 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