From bbc94b97f800ae87df3c0a14415babf9a3fab0a8 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 9 Jan 2008 09:59:45 +0100 Subject: [PATCH] fix some cache flags --- tag.c | 5 +++++ widgets/taglist.c | 1 + 2 files changed, 6 insertions(+) diff --git a/tag.c b/tag.c index 1fa7ff41..c9db0c26 100644 --- a/tag.c +++ b/tag.c @@ -28,6 +28,7 @@ #include "rules.h" #include "client.h" #include "ewmh.h" +#include "widget.h" extern AwesomeConf globalconf; @@ -68,6 +69,8 @@ tag_client(Client *c, Tag *t) new_tc->client = c; new_tc->tag = t; + + widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); } void @@ -81,6 +84,8 @@ untag_client(Client *c, Tag *t) detach_tagclientlink(tc); break; } + + widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS); } Bool diff --git a/widgets/taglist.c b/widgets/taglist.c index 9225bdb7..f56a5748 100644 --- a/widgets/taglist.c +++ b/widgets/taglist.c @@ -186,6 +186,7 @@ taglist_new(Statusbar *statusbar, cfg_t *config) /* Set cache property */ w->cache.flags = WIDGET_CACHE_TAGS; + w->cache.flags = WIDGET_CACHE_CLIENTS; return w; }