Hello,
This trivial 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.
BTW Carlos, why do you now have two branches in your repository?
Nicolas
>From bf7988571714784b1d72705bf6a3fd4dfcd3e2ef Mon Sep 17 00:00:00 2001
From: root <r...@ordi.(none)>
Date: Tue, 8 Dec 2009 00:37:02 +0100
Subject: [PATCH] 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 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/actions.c b/src/actions.c
index 43b4906..52b4fc9 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;
--
1.6.5