fix some cache flags
This commit is contained in:
parent
08e13d598e
commit
bbc94b97f8
5
tag.c
5
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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue