summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2021-01-06 15:20:01 +0100
committerjonsykkel <jonrevold@gmail.com>2021-01-06 15:20:01 +0100
commitbf47924090550337d2e04c0c5717d5dda304d707 (patch)
treedc6bc99ad4d03a45fbeb69bfd1a3c73096a68030
parentf96c44acb7b07e615dc5fdc5f0bbc2dd0fef1b40 (diff)
downloaddwm-bf47924090550337d2e04c0c5717d5dda304d707.tar.gz
ref f09418bbb6651ab4c299cfefbe1d18de401f630e
-rw-r--r--dwm.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/dwm.c b/dwm.c
index ec6a446..05e9c5c 100644
--- a/dwm.c
+++ b/dwm.c
@@ -748,7 +748,7 @@ drawbar(Monitor *m)
//drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
int scheme_i;
if(urg & 1 << i){
- scheme_i = SchemeUrgent;
+ scheme_i = SchemeWarn;
}else if(m->tagset[m->seltags] & 1<<i){
scheme_i = SchemeSel;
}else{
@@ -1774,18 +1774,20 @@ tile(Monitor *m)
// resize(c, m->wx, m->wy + my, mw - (2*c->bw), h - (2*c->bw), 0);
// if (my + HEIGHT(c) < m->wh)
// my += HEIGHT(c);
- if (n == 1)
- resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
- else
- resize(c, m->wx - c->bw, m->wy + my, mw - c->bw, h - c->bw, False);
- my += HEIGHT(c) - c->bw;
+ if (n == 1)
+ resize(c, m->wx - c->bw, m->wy, m->ww, m->wh, False);
+ else
+ resize(c, m->wx - c->bw, m->wy + my, mw - c->bw, h - c->bw, False);
+ if (my + HEIGHT(c) < m->wh)
+ my += HEIGHT(c) - c->bw;
} else {
h = (m->wh - ty) / (n - i);
// resize(c, m->wx + mw, m->wy + ty, m->ww - mw - (2*c->bw), h - (2*c->bw), 0);
// if (ty + HEIGHT(c) < m->wh)
// ty += HEIGHT(c);
- resize(c, m->wx + mw - c->bw, m->wy + ty, m->ww - mw, h - c->bw, False);
- ty += HEIGHT(c) - c->bw;
+ resize(c, m->wx + mw - c->bw, m->wy + ty, m->ww - mw, h - c->bw, False);
+ if (ty + HEIGHT(c) < m->wh)
+ ty += HEIGHT(c) - c->bw;
}
}