fix some cache flags

This commit is contained in:
Julien Danjou 2008-01-09 09:59:45 +01:00
parent 08e13d598e
commit bbc94b97f8
2 changed files with 6 additions and 0 deletions

5
tag.c
View File

@ -28,6 +28,7 @@
#include "rules.h" #include "rules.h"
#include "client.h" #include "client.h"
#include "ewmh.h" #include "ewmh.h"
#include "widget.h"
extern AwesomeConf globalconf; extern AwesomeConf globalconf;
@ -68,6 +69,8 @@ tag_client(Client *c, Tag *t)
new_tc->client = c; new_tc->client = c;
new_tc->tag = t; new_tc->tag = t;
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
} }
void void
@ -81,6 +84,8 @@ untag_client(Client *c, Tag *t)
detach_tagclientlink(tc); detach_tagclientlink(tc);
break; break;
} }
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
} }
Bool Bool

View File

@ -186,6 +186,7 @@ taglist_new(Statusbar *statusbar, cfg_t *config)
/* Set cache property */ /* Set cache property */
w->cache.flags = WIDGET_CACHE_TAGS; w->cache.flags = WIDGET_CACHE_TAGS;
w->cache.flags = WIDGET_CACHE_CLIENTS;
return w; return w;
} }