draw a background for icons in tasklist

This commit is contained in:
Julien Danjou 2008-01-17 15:47:08 +01:00
parent 2f8978c15b
commit 9d4aaa5461
1 changed files with 10 additions and 0 deletions

View File

@ -86,6 +86,16 @@ tasklist_draw(Widget *widget, DrawCtx *ctx, int offset, int used)
if(d->show_icons)
{
/* draw a background for icons */
area.x = widget->area.x + box_width * i;
area.y = widget->area.y;
area.height = widget->statusbar->height;
area.width = box_width;
if(sel == c)
draw_rectangle(ctx, area, True, d->bg_sel);
else
draw_rectangle(ctx, area, True, d->bg);
if((r = rule_matching_client(c)) && r->icon)
{
area = draw_get_image_size(r->icon);