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