From 41fdb79e284de3511b5946632feee27c50000e99 Mon Sep 17 00:00:00 2001 From: Nicolas Bonifas Date: Tue, 8 Dec 2009 00:37:02 +0100 Subject: [PATCH] Maximus: Take border into account This patch fixes a minor bug in Maximus: the new window size didn't take the border into account. This bug was particularly visible with the "do not cover dock" option turned on. --- src/actions.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/actions.c b/src/actions.c index 43b4906c..52b4fc97 100644 --- a/src/actions.c +++ b/src/actions.c @@ -382,6 +382,8 @@ void wMaximizeWindow(WWindow * wwin, int directions) if (directions & MAX_MAXIMUS) { find_Maximus_geometry(wwin, usableArea, &new_x, &new_y, &new_width, &new_height); + new_width -= adj_size; + new_height -= adj_size; if (WFLAGP(wwin, full_maximize) && new_y == 0) { new_y -= wwin->frame->top_width; new_height += wwin->frame->top_width - 1;