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

This commit is contained in:
Anselm R. Garbe 2006-03-06 19:14:29 +01:00
parent 6eb557892d
commit 63e7bfd6c8
2 changed files with 5 additions and 1 deletions

View File

@ -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 *

View File

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