From 63e7bfd6c8b5b12702efb345d69e5214e338d675 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 6 Mar 2006 19:14:29 +0100 Subject: [PATCH] now it works as follows: default tag is 1, tag a client with Alt-[1,..,9], select a tag with Alt-Shift-[1,..,9] --- cmd/wm/client.c | 1 + cmd/wm/tag.c | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/wm/client.c b/cmd/wm/client.c index da186199..95ee7745 100644 --- a/cmd/wm/client.c +++ b/cmd/wm/client.c @@ -344,6 +344,7 @@ detach_client(Client *c, Bool unmap) reparent_client(c, root, c->rect.x, c->rect.y); XUnmapWindow(dpy, c->framewin); } + update_ctags(); } Client * diff --git a/cmd/wm/tag.c b/cmd/wm/tag.c index 261423fe..a585176a 100644 --- a/cmd/wm/tag.c +++ b/cmd/wm/tag.c @@ -238,11 +238,14 @@ void detach_fromtag(Tag *t, Client *c, Bool unmap) { int i; + c->tags[0] = 0; + /* TODO: achieve something to remove a specific tag from client's tags */ +#if 0 char *p = strstr(c->tags, t->name); - fprintf(stderr, "%s %s %s\n", c->tags, t->name, p); if(p) memmove(p, p + strlen(t->name), strlen(p + strlen(t->name))); fprintf(stderr, "%s %s %s\n", c->tags, t->name, p); +#endif for(i = 0; i < t->narea; i++) if(clientofarea(t->area[i], c)) detach_fromarea(t->area[i], c);