wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 63e7bfd6c8b5b12702efb345d69e5214e338d675
parent 6eb557892db84f37f2faee86df8743d802a0b3f3
Author: Anselm R. Garbe <garbeam@wmii.de>
Date:   Mon,  6 Mar 2006 19:14:29 +0100

now it works as follows: default tag is 1, tag a client with Alt-[1,..,9], select a tag with Alt-Shift-[1,..,9]


Diffstat:
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 @@ -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 @@ -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);