Client/Layout: Fix focus issue (#1) with max layout.

This commit is contained in:
Martin Duquesnoy
2009-07-22 14:27:52 +02:00
parent ec834a4cbc
commit 33689fc5a0
5 changed files with 9 additions and 21 deletions

View File

@@ -143,12 +143,17 @@ void
maxlayout(int screen)
{
Client *c;
int i;
for(c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next))
for(i = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++i)
{
c->tile = False;
c->lmax = True;
client_maximize(c);
/* Focus the first client */
if(!i)
client_focus(c);
}
ewmh_update_current_tag_prop();