🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36499

Re: xterm windows height/width reported as height-1/width-1

#36499
From: Casey Leedom
Date: Wed, 07 Feb 1990 12:56
23 lines
1778 bytes
  After much hassling through the uwm source code and comparing it with
the [roughly] equivalent twm code, I thought I found what the problem was
with it reporting the wrong row/column sizes for xterms: it wasn't
checking for PBaseSize and was always using PMinSize in order to try to
find out what the working area of the window really was (never mind --
it's an ICCCM behavior issue -- I'm just priming the well here.)  But
after making this little ICCM compliance fix, still no go.

  After several hours of staring blindly at the twm and uwm code and
trying to convince myself that there must be some difference between them
because twm worked and uwm didn't I started looking at the library
routines twm and uwm used to get the window size hints.  Or, rather, I
looked at what uwm was using and ran right into the problem.

  Uwm uses XGetSizeHints.  XGetSizeHints masks of all the flags it gets
back from the server except (USPosition|USSize|PAllHints).  It turns out
that PAllHints doesn't include PBaseSize (or PWinGravity for that
matter).  Why doesn't PAllHints include PBaseSize???  Is this a bug??  If
it isn't a bug, how should uwm be getting hints that include PBaseSize?

Not a happy puppy,
Casey
Technical Details
Message-ID: <47638@lll-winken.LLNL.GOV>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!uwm.edu!lll-winken!gauss.llnl.gov!casey
References: <47569@lll-winken.LLNL.GOV>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!uakari.primate.wisc.edu!uwm.edu!lll-winken!gauss.llnl.gov!casey
From: casey@gauss.llnl.gov (Casey Leedom)
Newsgroups: comp.windows.x
Subject: Re: xterm windows height/width reported as height-1/width-1
Message-ID: <47638@lll-winken.LLNL.GOV>
Date: 7 Feb 90 12:56:05 GMT
References: <47569@lll-winken.LLNL.GOV>
Sender: usenet@lll-winken.LLNL.GOV
Reply-To: casey@gauss.llnl.gov (Casey Leedom)
Organization: Lawrence Livermore National Laboratory
Lines: 23