Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!psivax!quad1!carl From: carl@quad1.quad.com (Carl Priddy) Newsgroups: comp.windows.x.motif Subject: Getting the position (absolute) of a window Keywords: Position,Absolute,Window Message-ID: <15307@gouda.quad.com> Date: 3 Oct 90 18:57:20 GMT Organization: Quadratron Systems Inc, Thousand Oaks Ca Lines: 15 Hey out there: I have a DrawingArea Widget which is the work area of a main window. The main window is a child of an application shell. I need to get the top left corner position of the Drawing Area relative to the root window, in order to position a popup menu (with XmMenuPosition) to a particular location within it. XmMenuPosition (naturally) does not accept window-relative positioning, but requires the user to compute and set x_root and y_root (yes, this IS another of those "convenience" functions!). The problem I am seeing is that XGetGeometry returns 0 for both the x and y positions for ALL of the windows between DrawingArea and root. Using XtGetValues is no better. Can anyone shed some light on this? Thanks a heap, carl.