mirror of https://github.com/0intro/wmii
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:
parent
6eb557892d
commit
63e7bfd6c8
|
@ -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 *
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue