From 36d3347501c900d3974a48eebbb615b81168424b Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Tue, 20 Jan 2009 06:05:47 +0000 Subject: [PATCH] one. last. off-by-2. --- scrotwm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scrotwm.c b/scrotwm.c index 6c3bc3b..9f3d694 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -960,7 +960,8 @@ vertical_stack(struct workspace *ws, struct swm_geometry *g) { gg.w = g->w - (main_width + 2); gg.h = hrh - 2; j = 0; - } else if (j == colno - 1) + } + if (j == colno - 1) gg.h = (hrh + (g->h - (colno * hrh))); if (j == 0) @@ -1063,7 +1064,8 @@ horizontal_stack(struct workspace *ws, struct swm_geometry *g) { gg.h = g->h - (main_height + 2); gg.w = hrw - 2; j = 0; - } else if (j == rowno - 1) + } + if (j == rowno - 1) gg.w = (hrw + (g->w - (rowno * hrw))); if (j == 0) -- 1.7.10.4