From 904092846e65a6d093bcec8b2130638c14d9a309 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 12 Aug 2013 22:44:17 +0200 Subject: [PATCH] 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. --- modeline | 4 ++-- 1 file 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} ); }