Resize to (rows - 1) * line_height

The problem with resizing to `height - line_height' is that when size
hints are not honored `height' is not the same as `rows * line_height',
but slightly more.
This commit is contained in:
Tom Willemse 2013-08-12 22:44:17 +02:00
parent 159f9d2187
commit 904092846e

View file

@ -91,11 +91,11 @@ sub configure {
# this is an extremely dirty way to force a configurenotify, but who cares # this is an extremely dirty way to force a configurenotify, but who cares
$tab->XMoveResizeWindow ( $tab->XMoveResizeWindow (
$tab->parent, 0, 0, $tab->parent, 0, 0,
$self->width, $self->height - $self->{tabheight} $self->width, ($self->nrow - 1) * $self->{tabheight}
); );
$tab->XMoveResizeWindow ( $tab->XMoveResizeWindow (
$tab->parent, 0, 0, $tab->parent, 0, 0,
$self->width, $self->height - $self->{tabheight} $self->width, ($self->nrow - 1) * $self->{tabheight}
); );
} }