Merge "Add windowing mode to task snapshot." into pi-dev