🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

5 total messages Started by Paul Fuqua Fri, 14 Jun 1991 22:09
Epoch Lies About Size
#1875
Author: Paul Fuqua
Date: Fri, 14 Jun 1991 22:09
21 lines
1711 bytes
     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
Re: Epoch Lies About Size
#1876
Author: Jonathan David Abbey
Date: Sat, 15 Jun 1991 01:56
32 lines
1884 bytes
In article <2885926144-4961671@Islington-Terrace>,
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)).

Yes, my problems with Epoch seem to center around that.  The size seems
off, and it causes Epoch to start scrolling the page when one ^N's to the
middle of the screen.  ^V causes the thing to scroll only one or two lines,
and when I hit ^L, it turns out not to have moved me at all.

When I executed (epoch::screen-information nil), Epoch reported that the
screen width and height (in character measure according to the 1.6b docs),
were around 460 by 320 or some such.  I assume this is really pixel measure,
though..

(screen-width nil) gave me 80, but the window manager (twm) gave me 76 or
so.  <--(I think.)

Any suggestions, please, please, please?





-- 
-------------------------------------------------------------------------------
Jonathan David Abbey              \ "Dudez! Gimme a quarter!" - Aldo Cella
the university of texas at austin  \  - Dedicated to the Cygnian in all of us. 
computer science/math?/psychology?  \ jonabbey@cs.utexas.edu
Re: Epoch Lies About Size
#1880
Author: Alan M. Carroll
Date: Tue, 18 Jun 1991 14:09
28 lines
2323 bytes
In article <2885926144-4961671@Islington-Terrace>, 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).
>      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.

No, it's not an increment problem, but the difference between the base
size and the minimum size. In order to avoid crashing, Epoch enforces
a minimum size, which is the difference between what the screen size
really is, and what the WM reports it as, e.g. the WM is telling you
how much bigger than the minimum the window is, not the absolute size.
Alledgedly under R4 you can specify an additional value (the base
size) to get around this, but it doesn't seem to work. Debugging runs
claim that the hints are getting set correctly (i.e., base_width,
base_height are 0, and PBaseSize is set), but there's no effect.

-- 
Alan M. Carroll          <-- Another casualty of applied metaphysics
Epoch Development Team   
Urbana Il.               "I hate shopping with the reality-impaired" - Susan
Re: Epoch Lies About Size
#1881
Author: Jim Russell
Date: Tue, 18 Jun 1991 14:43
41 lines
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
Re: Epoch Lies About Size
#1884
Author: Jim Russell
Date: Wed, 19 Jun 1991 13:40
42 lines
2944 bytes
carroll@cs.uiuc.edu (Alan M. Carroll) writes:

>In article <2885926144-4961671@Islington-Terrace>, 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).
>>      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.

>No, it's not an increment problem, but the difference between the base
>size and the minimum size. In order to avoid crashing, Epoch enforces
>a minimum size, which is the difference between what the screen size
>really is, and what the WM reports it as, e.g. the WM is telling you
>how much bigger than the minimum the window is, not the absolute size.
>Alledgedly under R4 you can specify an additional value (the base
>size) to get around this, but it doesn't seem to work. Debugging runs
>claim that the hints are getting set correctly (i.e., base_width,
>base_height are 0, and PBaseSize is set), but there's no effect.

>-- 
>Alan M. Carroll          <-- Another casualty of applied metaphysics
>Epoch Development Team   
>Urbana Il.               "I hate shopping with the reality-impaired" - Susan

I'm no X expert (and I certainly don't know Epoch as well as Alan), but as I 
posted yesterday, I have found and fixed this problem for my Epoch.
I believe the problem is simply that it is incorrect to set base_width and
base_height to 0 (which is indeed being done).  Instead, they should be set
to 2*xs->in_border to take into account the window's internal border.
My post yesterday had the exact diffs.

If this doesn't work for you, let me know since it may have been one of the
many other fixes I made to Epoch that resolved this particular bug.

- Jim
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads