Fix multi infobar dynamic tagging bug

This commit is contained in:
Martin Duquesnoy 2012-02-02 18:35:14 +01:00
parent 06cca7b413
commit 73e013266b
2 changed files with 4 additions and 3 deletions

View File

@ -68,7 +68,6 @@ infobar_elem_tag_init(struct element *e)
{ {
ELEM_FREE_BARWIN(e); ELEM_FREE_BARWIN(e);
SLIST_INIT(&e->bars); SLIST_INIT(&e->bars);
e->infobar->screen->flags ^= SCREEN_TAG_UPDATE;
} }
TAILQ_FOREACH(t, &e->infobar->screen->tags, next) TAILQ_FOREACH(t, &e->infobar->screen->tags, next)

View File

@ -35,8 +35,6 @@ tag_new(struct screen *s, char *name)
else else
t->name = xstrdup(name); t->name = xstrdup(name);
printf("->t->name <%s>\n", t->name);
SLIST_INIT(&t->clients); SLIST_INIT(&t->clients);
TAILQ_INIT(&t->sets); TAILQ_INIT(&t->sets);
@ -246,6 +244,8 @@ uicb_tag_new(Uicb cmd)
SLIST_FOREACH(i, &s->infobars, next) SLIST_FOREACH(i, &s->infobars, next)
infobar_elem_reinit(i); infobar_elem_reinit(i);
s->flags ^= SCREEN_TAG_UPDATE;
} }
void void
@ -265,6 +265,8 @@ uicb_tag_del(Uicb cmd)
SLIST_FOREACH(i, &W->screen->infobars, next) SLIST_FOREACH(i, &W->screen->infobars, next)
infobar_elem_reinit(i); infobar_elem_reinit(i);
W->screen->flags ^= SCREEN_TAG_UPDATE;
} }
} }