Client: Fix feature #3.

This commit is contained in:
Martin Duquesnoy 2009-03-29 01:51:14 +01:00
parent 592dad2827
commit c032d24640
2 changed files with 10 additions and 1 deletions

View File

@ -40,6 +40,7 @@ void
tag_set(int tag)
{
int otag;
Client *c;
screen_get_sel();
@ -70,7 +71,14 @@ tag_set(int tag)
infobar_set_position(tags[selscreen][seltag[selscreen]].barpos);
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;
}

View File

@ -104,6 +104,7 @@ quit(void)
XFreeCursor(dpy, cursor[CurMove]);
XFreeCursor(dpy, cursor[CurResize]);
infobar_destroy();
IFREE(sgeo);
IFREE(infobar);
IFREE(keys);