summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tag.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/tag.c b/tag.c
index fce3c6e..d29a179 100644
--- a/tag.c
+++ b/tag.c
@@ -43,8 +43,10 @@ dofloat(Arg *arg)
43 43
44 arrange = dofloat; 44 arrange = dofloat;
45 for(c = clients; c; c = c->next) { 45 for(c = clients; c; c = c->next) {
46 if(c->tags[tsel]) 46 setgeom(c);
47 if(c->tags[tsel]) {
47 resize(c, True); 48 resize(c, True);
49 }
48 else 50 else
49 ban(c); 51 ban(c);
50 } 52 }
@@ -75,6 +77,7 @@ dotile(Arg *arg)
75 h = sh - bh; 77 h = sh - bh;
76 78
77 for(i = 0, c = clients; c; c = c->next) { 79 for(i = 0, c = clients; c; c = c->next) {
80 setgeom(c);
78 if(c->tags[tsel]) { 81 if(c->tags[tsel]) {
79 if(c->isfloat) { 82 if(c->isfloat) {
80 higher(c); 83 higher(c);
@@ -82,22 +85,22 @@ dotile(Arg *arg)
82 continue; 85 continue;
83 } 86 }
84 if(n == 1) { 87 if(n == 1) {
85 c->x = sx; 88 *c->x = sx;
86 c->y = sy + bh; 89 *c->y = sy + bh;
87 c->w = sw - 2 * c->border; 90 *c->w = sw - 2 * c->border;
88 c->h = sh - 2 * c->border - bh; 91 *c->h = sh - 2 * c->border - bh;
89 } 92 }
90 else if(i == 0) { 93 else if(i == 0) {
91 c->x = sx; 94 *c->x = sx;
92 c->y = sy + bh; 95 *c->y = sy + bh;
93 c->w = mw - 2 * c->border; 96 *c->w = mw - 2 * c->border;
94 c->h = sh - 2 * c->border - bh; 97 *c->h = sh - 2 * c->border - bh;
95 } 98 }
96 else { 99 else {
97 c->x = sx + mw; 100 *c->x = sx + mw;
98 c->y = sy + (i - 1) * h + bh; 101 *c->y = sy + (i - 1) * h + bh;
99 c->w = w - 2 * c->border; 102 *c->w = w - 2 * c->border;
100 c->h = h - 2 * c->border; 103 *c->h = h - 2 * c->border;
101 } 104 }
102 resize(c, False); 105 resize(c, False);
103 i++; 106 i++;