Merge "Use a seperate transaction to applying windowing mode changes after exiting pip" into main