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

This commit is contained in:
Anselm R. Garbe 2006-03-01 12:34:31 +01:00
parent 4c9fe5addc
commit eb6f1ac641

View File

@ -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 */
}