On Thu, Jan  5, 2012 at 12:54 (+0100), Emanuele Giaquinta wrote:

> On Wed, Jan 04, 2012 at 11:47:48AM -0400, Jim Diamond wrote:
>> Speaking of the to-do list, yes, it has problems on 9.14.  Aside from
>> the unused space (*) problem the perl module ends up with some strange
>> notions of the terminal size and my mods work around them in as
>> general a way as I was able to figure out with the time I had.
>> Unfortunately, changes in 9.14 changed the perl module's idea of the
>> terminal size, and I don't have time right now to work through those.
>> If anyone else does I'd be very happy to get the updates to make it
>> work for 9.14, even if they are not backwards-compatible.

>> (*) I thought I saw something in the 9.13 or 9.14 change log saying a
>> fix was put in to avoid unused space, but for me I have none in 9.12
>> and I have it in 9.14, even with the "tabbed" extension.   Specifically
>>      - fix a redraw bug that occurs when a bg pixmap is set and the
>>        wm does not honour the size hints set by urxvt.  Now urxvt
>>        forces the size of the terminal window to be a multiple of
>>        the cell size.
>> I am a bit confused by the second sentence, since 9.12 doesn't seem to
>> have the problem, but 9.14 does.  But maybe it is only when a bg
>> pixmap is set.

> Which WM do you use?
fvwm2

> If the WM honors the size hints set by urxvt there should be no
> change between 9.12 and 9.14, also in $term->{width,height}.

9.12: in tabbedex's on_start(), width = 560, height = 312
      in the first call to on_resize_all_windows(),
         the args are 560 and 303
         and self->{term}->width = 560 and self->{term}->height = 303
         and self->width is 560, self->height is 303
         
9.14: in tabbedex's on_start(), width = 560, height = 312
      in the first call to on_resize_all_windows(),
         the args are 555 and 303
         and self->{term}->width = 553 and self->{term}->height = 299
         and self->width is 553, self->height is 299

As you see, there are differences in the height and width.

The font I'm using above is 7x13, and with a 80x24 terminal the
"sensible" numbers for the part of the window where the text is
displayed (ignoring borders, scrollbars, yada yada yada) is 560 x 312,
just like both of them start with.

In the first call to on_resize_all_windows(), even though I start with
a hidden scrollbar, the height argument has lost 9 pixels (fheight +
border size??).  I have no hypothesis yet for where the other pixels
go in 9.14, but if someone wants to tell me, that would be great.
(For my own purposes I can kludge up some numbers that work for me,
but it would be nicer if I could write some code that would work for
everyone.)

Cheers.
                                Jim

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode

Reply via email to