This commit is contained in:
Julien Danjou 2007-09-18 22:46:31 +02:00
parent f56a26bac7
commit b7ef890148
1 changed files with 3 additions and 3 deletions

View File

@ -169,16 +169,16 @@ uicb_setlayout(Display *disp,
if(!arg)
{
if(!(++awesomeconf->current_layout)->symbol)
awesomeconf->current_layout = &awesomeconf->layouts[0];
awesomeconf->current_layout = awesomeconf->layouts;
}
else
{
i = strtol(arg, NULL, 10);
if(i < 0 || i >= awesomeconf->nlayouts)
return;
return;
awesomeconf->current_layout = &awesomeconf->layouts[i];
}
for(c = clients; c; c = c->next)
c->ftview = True;