Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!sdrc!dqmelo From: dqmelo@sdrc.UUCP (Asbjorn_melo) Newsgroups: comp.windows.x Subject: Bug in XGetWindowAttributes in x11r3 Keywords: XGetWindowAttributes Message-ID: <1151@sdrc.UUCP> Date: 21 Feb 90 14:05:11 GMT Organization: SDRC, Cincinnati Lines: 22 I'm posting again because I got no response the first time. This time I will be more specific. I'm writing a calculator in x11r3 on a DEC vaxstation 3100. I'm trying to find a way to resize the buttons on the calculator when the user resizes the main window of the calculator. Initially, I tried calling XConfigureWindow on the subwindows when I got a ConfigureNotify event on the parent. This resulted in the disappearance of the subwindows and no reappearance in the new location. Now I am trying a new approach. When a ConfigureNotify event is received on the parent, I call XDestroyWindow on the parent after querying the current location and size. The problem with this approach is that I am unable to query the location of the main window in my application. The XWindowAttributes structure stores -1, -1 for the x, y members anytime after the window is mapped. Therefore calls to XGetWindowAttributes or XGetWindowGeometry return -1, -1 for the location. Can anyone say how to get the correct location of a window; how to get XConfigureWindow to work; or a good way to get subwindows to resize along with their parent? Thanks, Mitch Horton uucp!sdrc!sphorton