From 3b06e2ba8fe55bea7e63e31e08395db4eb45c35e Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Fri, 10 Feb 2012 19:15:35 +0100 Subject: [PATCH] Fix tag update at tag_client --- src/tag.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/tag.c b/src/tag.c index 0db54ff..8f1f309 100644 --- a/src/tag.c +++ b/src/tag.c @@ -92,11 +92,12 @@ tag_client(struct tag *t, struct client *c) c->flags &= ~CLIENT_RULED; - infobar_elem_screen_update(c->screen, ElemTag); - /* Client remove */ if(!t) + { + infobar_elem_screen_update(c->screen, ElemTag); return; + } c->prevtag = c->tag; c->tag = t; @@ -106,6 +107,8 @@ tag_client(struct tag *t, struct client *c) SLIST_INSERT_HEAD(&t->clients, c, tnext); + infobar_elem_screen_update(c->screen, ElemTag); + if(c->flags & CLIENT_TABMASTER && c->prevtag) { struct client *cc;