JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Duh, math is hard.
authorRyan McBride <mcbride@countersiege.com>
Tue, 20 Jan 2009 05:57:18 +0000 (05:57 +0000)
committerRyan McBride <mcbride@countersiege.com>
Tue, 20 Jan 2009 05:57:18 +0000 (05:57 +0000)
scrotwm.c

index 7fa1d0c..6c3bc3b 100644 (file)
--- a/scrotwm.c
+++ b/scrotwm.c
@@ -961,7 +961,7 @@ vertical_stack(struct workspace *ws, struct swm_geometry *g) {
                        gg.h = hrh - 2;
                        j = 0;
                } else if (j == colno - 1)
-                       gg.h = (hrh + (g->h - (colno * hrh))) - 2;
+                       gg.h = (hrh + (g->h - (colno * hrh)));
                 
                if (j == 0)
                        gg.y = g->y;
@@ -1064,7 +1064,7 @@ horizontal_stack(struct workspace *ws, struct swm_geometry *g) {
                        gg.w = hrw - 2;
                        j = 0;
                } else if (j == rowno - 1)
-                       gg.w = (hrw + (g->w - (rowno * hrw))) - 2;
+                       gg.w = (hrw + (g->w - (rowno * hrw)));
 
                if (j == 0)
                        gg.x = g->x;