Article View: gnu.epoch.misc
Article #1881Re: Epoch Lies About Size
From: Jim Russell
Date: Tue, 18 Jun 1991 14:43
Date: Tue, 18 Jun 1991 14:43
41 lines
2339 bytes
2339 bytes
pf@islington-terrace.csc.ti.com (Paul Fuqua) writes: > I've just noticed a little oddity with Epoch 3.2pl2 -- its windows >lie about their sizes. My default geometry is 90x30, and the main >windows come up 90x30 (according to both my count and (screen-height) >and (screen-width)). > However, if I use a window manager to resize them, the indicated >size is 86x28 (true for twm, tvtwm, and mwm; I don't know how to make >olwm display size while resizing). Xwininfo reports the size in pixels >correctly, which would give the correct dimensions if divided by the >font size. > This leads me to believe that the width-increment and >height-increment in the size-hints are being calculated incorrectly, >though I can't figure out how, since both Epoch and Emacs apparently use >the same font attributes for the increment calculations. > It's not an important problem, just a cosmetic one, but I wondered >if anyone else has it. >Paul Fuqua pf@csc.ti.com, ti-csl!pf >Texas Instruments Computer Science Center, Dallas, Texas >Gentiles are people who eat mayonnaise for no reason. -- Robin Williams I noticed this problem, and fixed it some time ago. Unfortunately, it was sufficiently long ago that I don't remember exactly which change did the trick. However, I believe it was the following in src/screen.c : % diff screen.c screen.c.old 252,253c252,253 < size_hints.base_width = 2*xs->in_border; < size_hints.base_height = 2*xs->in_border; --- > size_hints.base_width = 0; > size_hints.base_height = 0; Let me know if this doesn't do it, and I'll look further. - Jim
Technical Details
Message-ID:
<jrussell.677256222@pequod.watson.ibm.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!pequod!jrussellReferences:
<2885926144-4961671@Islington-Terrace>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc7ee,2506d25095f1502e X-Google-Attributes: gidfc7ee,public X-Google-ArrivalTime: 1991-06-18 14:22:45 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!bywater!arnor!pequod!jrussell From: jrussell@watson.ibm.com (Jim Russell) Newsgroups: gnu.epoch.misc Subject: Re: Epoch Lies About Size Message-ID: <jrussell.677256222@pequod.watson.ibm.com> Date: 18 Jun 91 14:43:42 GMT References: <2885926144-4961671@Islington-Terrace> Sender: news@watson.ibm.com (NNTP News Poster) Reply-To: jrussell@watson.ibm.com Distribution: gnu Organization: IBM T.J. Watson Research Center Lines: 41 Nntp-Posting-Host: pequod