wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit eb6f1ac6413fbc1b1b22c0a1b3a2c71d44e24459
parent 4c9fe5addc11d092194b65c561e558a82db12d25
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Wed,  1 Mar 2006 12:34:31 +0100

stacks are titled in pager, if the scaled rect is smaller than bar_height()


Diffstat:
cmd/wm/wm.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c @@ -55,8 +55,13 @@ draw_pager_client(Client *c, Draw *d) d->color = def.sel; else d->color = def.norm; + d->data = c->name; scale_rect(&rect, &initial_rect, &c->frame.rect, &d->rect); + + if(d->rect.height < bar_height()) + d->data = nil; + blitz_drawlabel(dpy, d); XSync(dpy, False); /* do not clear upwards */ }