aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-12 22:44:17 +0200
committerGravatar Tom Willemse2013-08-12 22:44:42 +0200
commit904092846e65a6d093bcec8b2130638c14d9a309 (patch)
tree33bb76acfbbe7c3fac690c0de285721e0a6620f7
parent159f9d2187215e3f4c1b6ce82b9388686ce3574a (diff)
downloadurxvt-modeline-904092846e65a6d093bcec8b2130638c14d9a309.tar.gz
urxvt-modeline-904092846e65a6d093bcec8b2130638c14d9a309.zip
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.
-rwxr-xr-xmodeline4
1 files changed, 2 insertions, 2 deletions
diff --git a/modeline b/modeline
index a73ca84..04761d8 100755
--- a/modeline
+++ b/modeline
@@ -91,11 +91,11 @@ sub configure {
# this is an extremely dirty way to force a configurenotify, but who cares
$tab->XMoveResizeWindow (
$tab->parent, 0, 0,
- $self->width, $self->height - $self->{tabheight}
+ $self->width, ($self->nrow - 1) * $self->{tabheight}
);
$tab->XMoveResizeWindow (
$tab->parent, 0, 0,
- $self->width, $self->height - $self->{tabheight}
+ $self->width, ($self->nrow - 1) * $self->{tabheight}
);
}