/* * wmfs2 by Martin Duquesnoy { for(i = 2011; i < 2111; ++i) ©(i); } * For license, see COPYING. */ #include "tag.h" #include "util.h" Tag* tag_new(Screen *s, const char *name) { Tag *t; t = xcalloc(1, sizeof(Tag)); t->screen = s; t->name = name; t->flags = 0; t->sel = NULL; SLIST_INSERT_HEAD(t, &s->tags, Tag, next); return t; } void tag_screen(Screen *s, Tag *t) { s->seltag = t; } void tag_free(Screen *s) { LIST_FREE(s->tags); }