From c4a01031c45a6d515cb9a299af76c85ccf41427f Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 29 Jul 2008 12:03:01 +0200 Subject: [PATCH] tasklist: add tags as cache element (FS#227) Signed-off-by: Julien Danjou --- widgets/tasklist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/tasklist.c b/widgets/tasklist.c index 7c4d2c6cb..9e5e4e5e7 100644 --- a/widgets/tasklist.c +++ b/widgets/tasklist.c @@ -359,7 +359,7 @@ tasklist_detach(widget_t *widget, void *object) { tasklist_data_t *d = widget->data; tasklist_object_data_t *od; - + if((od = tasklist_object_data_getbyobj(d->objects_data, object))) { tasklist_object_data_list_detach(&d->objects_data, od); @@ -392,7 +392,7 @@ tasklist_new(alignment_t align __attribute__ ((unused))) d->label = LUA_REFNIL; /* Set cache property */ - w->cache_flags = WIDGET_CACHE_CLIENTS; + w->cache_flags = WIDGET_CACHE_CLIENTS | WIDGET_CACHE_TAGS; return w; }