Article View: comp.windows.x
Article #23766Re: subwindows wanting to know top ancestor info.
From: der Mouse
Date: Mon, 17 Jun 1991 02:11
Date: Mon, 17 Jun 1991 02:11
23 lines
1370 bytes
1370 bytes
> 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? It sounds as though this is a special case of "I have a window ID, how can I find its size?", where the child window is just a red herring. If this is so you should look at XGetWindowAttributes and/or XGetGeometry. > I tried [...], but this blew up things using the shape extensions. What do you want for a SHAPEd window? The current shape? The default rectangle (what the shape would be if you set a mask of None)? The minimal bounding box of the current shape? For the first, you need to use the XShapeGetRectangles call; for the second, XGetWindowAttributes/XGetGeometry; for the third, XShapeQueryExtents. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu
Technical Details
Message-ID:
<9106170211.AA27965@lightning.McRCIM.McGill.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!pacbell.com!att!ucbvax!bloom-beacon!dont-send-mail-to-path-linesShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!pacbell.com!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: mouse@lightning.mcrcim.mcgill.EDU (der Mouse) Newsgroups: comp.windows.x Subject: Re: subwindows wanting to know top ancestor info. Message-ID: <9106170211.AA27965@lightning.McRCIM.McGill.EDU> Date: 17 Jun 91 02:11:45 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 23