Layout: Fix screen test in arrange (reported by mseed)
This commit is contained in:
parent
46d212297a
commit
910421c41c
@ -356,6 +356,7 @@ client_focus(Client *c)
|
||||
sel->flags &= ~AboveFlag;
|
||||
|
||||
frame_update(sel);
|
||||
|
||||
mouse_grabbuttons(sel, !conf.focus_pclick);
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user