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:
parent
159f9d2187
commit
904092846e
1 changed files with 2 additions and 2 deletions
4
modeline
4
modeline
|
@ -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}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue