From 9d4aaa54618087e0fb28a6d7612d7a6d25956d05 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 17 Jan 2008 15:47:08 +0100 Subject: [PATCH] draw a background for icons in tasklist --- widgets/tasklist.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 41d61c56..7e8025f2 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -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);