summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tag.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tag.c b/tag.c
index 1bfedb2..c9eec90 100644
--- a/tag.c
+++ b/tag.c
@@ -96,12 +96,18 @@ dotile(Arg *arg)
96 *c->w = mw - 2 * c->border; 96 *c->w = mw - 2 * c->border;
97 *c->h = sh - 2 * c->border - bh; 97 *c->h = sh - 2 * c->border - bh;
98 } 98 }
99 else { 99 else if(h > bh) {
100 *c->x = sx + mw; 100 *c->x = sx + mw;
101 *c->y = sy + (i - 1) * h + bh; 101 *c->y = sy + (i - 1) * h + bh;
102 *c->w = w - 2 * c->border; 102 *c->w = w - 2 * c->border;
103 *c->h = h - 2 * c->border; 103 *c->h = h - 2 * c->border;
104 } 104 }
105 else { /* fallback if h < bh */
106 *c->x = sx + mw;
107 *c->y = sy + bh;
108 *c->w = w - 2 * c->border;
109 *c->h = sh - 2 * c->border - bh;
110 }
105 resize(c, False, TopLeft); 111 resize(c, False, TopLeft);
106 i++; 112 i++;
107 } 113 }