Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!asuvax!ncar!boulder!stan!ninja!toml From: toml@ninja.Solbourne.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: twm - What is size of title bar? Keywords: twm title X Message-ID: <1990Oct15.140039.24990@Solbourne.COM> Date: 15 Oct 90 14:00:39 GMT References: <162@sdrc.UUCP> <1990Oct13.184110.13150@ux1.cso.uiuc.edu> Sender: news@Solbourne.COM Reply-To: toml@solbourne.com Distribution: usa Organization: Solbourne Computer, Inc. Lines: 23 In article <1990Oct13.184110.13150@ux1.cso.uiuc.edu>, carroll@sunc5.cs.uiuc.edu (Alan M. Carroll) writes: |> What we've done for this is to trace back the X window tree until you get a window |> whose parent is the root window, and then retrieve the screen information for that |> window. This can be compared to the information for the actual client window to |> determine the size of the various WM borders. I don't have any C code for this, |> but here's some Epoch code that does it - This will not work with tvtwm or any other window manager that places an extra window on top of the root window. There really is no "standard" way to find out how big the decoration is around your window. -- Tom LaStrange Solbourne Computer Inc. ARPA: toml@Solbourne.COM 1900 Pike Rd. UUCP: ...!{boulder,sun}!stan!toml Longmont, CO 80501