Client: Fix feature #3.
This commit is contained in:
parent
592dad2827
commit
c032d24640
10
src/tag.c
10
src/tag.c
@ -40,6 +40,7 @@ void
|
|||||||
tag_set(int tag)
|
tag_set(int tag)
|
||||||
{
|
{
|
||||||
int otag;
|
int otag;
|
||||||
|
Client *c;
|
||||||
|
|
||||||
screen_get_sel();
|
screen_get_sel();
|
||||||
|
|
||||||
@ -70,7 +71,14 @@ tag_set(int tag)
|
|||||||
infobar_set_position(tags[selscreen][seltag[selscreen]].barpos);
|
infobar_set_position(tags[selscreen][seltag[selscreen]].barpos);
|
||||||
|
|
||||||
arrange(selscreen);
|
arrange(selscreen);
|
||||||
client_focus(NULL);
|
|
||||||
|
/* To focus the first client in the new tag */
|
||||||
|
for(c = clients; c; c = c->next)
|
||||||
|
if(c->tag == seltag[selscreen] && c->screen == selscreen)
|
||||||
|
break;
|
||||||
|
|
||||||
|
client_focus((c) ? c : NULL);
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -104,6 +104,7 @@ quit(void)
|
|||||||
XFreeCursor(dpy, cursor[CurMove]);
|
XFreeCursor(dpy, cursor[CurMove]);
|
||||||
XFreeCursor(dpy, cursor[CurResize]);
|
XFreeCursor(dpy, cursor[CurResize]);
|
||||||
infobar_destroy();
|
infobar_destroy();
|
||||||
|
|
||||||
IFREE(sgeo);
|
IFREE(sgeo);
|
||||||
IFREE(infobar);
|
IFREE(infobar);
|
||||||
IFREE(keys);
|
IFREE(keys);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user