Merge "Crop window input region to stack bounds."