🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37197

Re: Bug in XGetWindowAttributes in x11r3

#37197
From: Bob Scheifler
Date: Thu, 22 Feb 1990 13:33
18 lines
1009 bytes
    Therefore calls to XGetWindowAttributes or XGetWindowGeometry return -1, -1
    for the location.

I'd say you're running under a reparenting window manager, and the coordinates
are relative to the window manager's frame, not the root window.

    Can anyone say how to get the correct location of a window;

Try XTranslateCoordinates.

    how to get XConfigureWindow to work;

Should work as far as I know.

    or a good way to get subwindows to resize along with their parent?

Try using a toolkit. :-)
Technical Details
Message-ID: <9002221333.AA00978@expire.lcs.mit.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
References: <1151@sdrc.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp!deimos!ux1.cso.uiuc.edu!uwm.edu!rpi!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!rws
From: rws@EXPO.LCS.MIT.EDU (Bob Scheifler)
Newsgroups: comp.windows.x
Subject: Re: Bug in XGetWindowAttributes in x11r3
Message-ID: <9002221333.AA00978@expire.lcs.mit.edu>
Date: 22 Feb 90 13:33:45 GMT
References: <1151@sdrc.UUCP>
Sender: daemon@athena.mit.edu (Mr Background)
Organization: The Internet
Lines: 18