Layout: Fix screen test in arrange (reported by mseed)

This commit is contained in:
Martin Duquesnoy 2010-07-21 13:20:09 +02:00
parent 46d212297a
commit 910421c41c
2 changed files with 2 additions and 1 deletions

View File

@ -356,6 +356,7 @@ client_focus(Client *c)
sel->flags &= ~AboveFlag;
frame_update(sel);
mouse_grabbuttons(sel, !conf.focus_pclick);
}

View File

@ -39,7 +39,7 @@ arrange(int screen, Bool update_layout)
{
Client *c;
if(screen < 0 || screen > screen_count())
if(screen < 0 || screen > screen_count() - 1)
screen = screen_get_sel();
for(c = clients; c; c = c->next)