tasklist: add tags as cache element (FS#227)

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-29 12:03:01 +02:00
parent 4ba2e22bae
commit c4a01031c4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}