🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37116

Re: x[DXGetWindowe[DAttributes

#37116
From: Tom LaStrange
Date: Wed, 21 Feb 1990 16:34
18 lines
1175 bytes
> For some reason, whenever I call XGetWindowAttributes or 
> XGetGeometry, the x, y value  of the upper left hand corner
> of the window is -1, -1.  Does anyone know why this happens and
> what I can do to get the correct values?

I'll bet that you're doing the XGetWindowAttributes on your window
that has been reparented by the window manager.  The coordinates that
you are seeing are relative to the window's parent which is probably 
a frmae window owned by the window manager.  If you really want to know
where on the root window your window is, you should track ConfigureNotify
events or try XTranslateCoordinates().

--
Tom LaStrange

Solbourne Computer Inc.    ARPA: toml@Solbourne.COM
1900 Pike Rd.              UUCP: ...!{boulder,sun}!stan!toml
Longmont, CO  80501
Technical Details
Message-ID: <1990Feb21.163440.7823@Solbourne.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!sunybcs!boulder!stan!ninja!toml

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker!usc!zaphod.mps.ohio-state.edu!sunybcs!boulder!stan!ninja!toml
From: toml@ninja.Solbourne.COM (Tom LaStrange)
Newsgroups: comp.windows.x
Subject: Re: x[DXGetWindowe[DAttributes
Message-ID: <1990Feb21.163440.7823@Solbourne.COM>
Date: 21 Feb 90 16:34:40 GMT
Sender: news@Solbourne.COM
Organization: Solbourne Computer, Inc.
Lines: 18