Improve window cycling behavior when maxv/maxh/max windows overlap.

This commit is contained in:
Sean Pringle
2014-09-11 16:32:26 +10:00
parent a803468635
commit 1778b9d413
2 changed files with 13 additions and 4 deletions

6
spot.c
View File

@@ -132,3 +132,9 @@ int spot_choose_by_direction(int spot, int mon, int dir)
return spot;
}
int spot_count_windows(int spot, int mon)
{
int i, n = 0; client *c;
for_windows(i, c) if (c->manage && c->spot == spot && c->monitor == mon) n++;
return n;
}